Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name DeleteBennetHaselton
- // @namespace FuckSlashdot.org
- // @description Gets rid of shit mentioning Bennet Haselton
- // @include http://slashdot.org/
- // @include http://slashdot.org/?page=*
- // @version 1
- // @grant none
- // ==/UserScript==
- var shitcock = document.getElementById("firehoselist").children;
- if (shitcock.length) {
- for (var i = 0; i < shitcock.length; i++) {
- if(shitcock[i].nodeName.toUpperCase() === "ARTICLE") {
- var chlamydia = shitcock[i].children;
- if(chlamydia.length) {
- for (var j = 0; j < chlamydia.length; j++) {
- if(chlamydia[j].nodeName.toUpperCase() === "DIV") {
- var sourcunt = chlamydia[j].children;
- if(sourcunt.length) {
- for (var k = 0; k < sourcunt.length; k++) {
- if (sourcunt[k].nodeName.toUpperCase() === "DIV" && (sourcunt[k].childNodes[0].nodeValue.search(/(\bbennett\b|\bhaselton\b)/i) !== -1 || sourcunt[k].innerHTML.search(/(\bbennett\b|\bhaselton\b)/i) !== -1 )) {
- shitcock[i].style.display = "none";
- }
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement