Last active
July 26, 2016 21:39
-
-
Save ignu/cd5e80baf97ced209543dd8106b35a0b to your computer and use it in GitHub Desktop.
Ignore posts on BCO containing words you don't want to see.
This file contains hidden or 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
// Step 1: download and enable https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija | |
// Step 2: Add your banned words here. | |
var bannedWords = ['posterName_', "PosterName", "offensiveWord"] | |
var removeShit = function() { | |
bannedWords.forEach(function(word) { | |
console.log("removing", word) | |
$("ul.view:contains(" + word + ")").hide() | |
}) | |
} | |
// removeShit on documentReady | |
$(removeShit) | |
// removeShit when viewing more. don't know why $(document).ajaxComplete didn't work. | |
$(function() { | |
$("#uncollapse_some, #uncollapse_all, ul.bottom li a").click(function() { | |
[10, 50, 75, 100, 150, 300, 800, 1500, 3000].forEach(function(i) { | |
setTimeout(removeShit, i) | |
}) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment