Skip to content

Instantly share code, notes, and snippets.

@ignu
Last active July 26, 2016 21:39
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 ignu/cd5e80baf97ced209543dd8106b35a0b to your computer and use it in GitHub Desktop.
Save ignu/cd5e80baf97ced209543dd8106b35a0b to your computer and use it in GitHub Desktop.
Ignore posts on BCO containing words you don't want to see.
// 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