Created
January 15, 2015 19:59
-
-
Save anonymous/3235db049b18699c082b to your computer and use it in GitHub Desktop.
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
// ==UserScript== | |
// @name No Bennett | |
// @description Remove troll posts from Slashdot front page. | |
// @include http://slashdot.org/* | |
// @include http://*.slashdot.org/* | |
// @include https://slashdot.org/* | |
// @include https://*.slashdot.org/* | |
// @exclude https://*.slashdot.org/story/* | |
// @exclude http://*.slashdot.org/story/* | |
// @grant none | |
// ==/UserScript== | |
var elements = document.getElementsByTagName('article'); | |
for(var i = 0; i < elements.length; i++) { | |
var text = elements[i].textContent; | |
if(text.search("Bennett Haselton") != -1) { | |
elements[i].parentNode.removeChild(elements[i]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment