Skip to content

Instantly share code, notes, and snippets.

@akhilrex
Created July 15, 2016 06:57
Show Gist options
  • Select an option

  • Save akhilrex/532991ac60d33deae4b61cfb137a3152 to your computer and use it in GitHub Desktop.

Select an option

Save akhilrex/532991ac60d33deae4b61cfb137a3152 to your computer and use it in GitHub Desktop.
//This code will only work if you have Reddit Enhancement Suite installed on chrome and infinite scrolling is enabled
//All you have to do is open the developer console while on /r/all (https://developers.google.com/web/tools/chrome-devtools/iterate/inspect-styles/shortcuts?hl=en)
// and paste the code mentioned below and hit enter. The webpage will keep getting more content and remove the SFW content.
// Why did I write this : Was bored.
// As it is clear only NSFW content would remain on the screen so use this wisely (or not).
window.setInterval(function(){$('.thing').each(function(){
if(!$(this).hasClass('over18')){
$(this).remove();
}
});
$('div#progressIndicator').trigger("click");},3000);
@FunCommercial

Copy link
Copy Markdown

Hi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment