Created
January 1, 2018 13:17
-
-
Save afzaledx/e057522c9de413dca77b7f6d0fa7458c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function findForDisabling(searchTerm){ | |
$(searchTerm).each(disableDisplay); | |
} | |
function disableDisplay(index, element){ | |
element.style.display = 'none'; | |
} | |
window.setInterval(function(){ | |
var searches = ["#related", "#comments"]; | |
searches.forEach(findForDisabling); | |
}, 3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment