Skip to content

Instantly share code, notes, and snippets.

@afzaledx
Created January 1, 2018 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afzaledx/e057522c9de413dca77b7f6d0fa7458c to your computer and use it in GitHub Desktop.
Save afzaledx/e057522c9de413dca77b7f6d0fa7458c to your computer and use it in GitHub Desktop.
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