Last active
January 12, 2019 04:19
-
-
Save Bren00x/2f68056770c527e2db9617334d05af9a to your computer and use it in GitHub Desktop.
Hides (or shows) NSFW content on reddit V1
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
setInterval(function(){ | |
elements = document.querySelectorAll(".rpBJOHq2PR60pnwJlUyP0 div:not(.done)"); | |
for(i = 0; i < elements.length; i++) { | |
if(elements[i].querySelector(".fvTdmm")) { | |
elements[i].classList.add("done"); | |
elements[i].style.display = "none"; | |
} | |
} | |
},1000) |
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
setInterval(function(){ | |
elements = document.querySelectorAll(".rpBJOHq2PR60pnwJlUyP0 > div:not(.done)"); | |
for(i = 0; i < elements.length; i++) { | |
if(elements[i].querySelector(".fvTdmm")) { | |
elements[i].classList.add("done"); | |
} else { | |
elements[i].classList.add("done"); | |
elements[i].style.display = "none"; | |
} | |
} | |
},1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment