Advertisement
Guest User

DeleteBennetHaselton

a guest
Nov 13th, 2014
484
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        DeleteBennetHaselton
  3. // @namespace   FuckSlashdot.org
  4. // @description Gets rid of shit mentioning Bennet Haselton
  5. // @include     http://slashdot.org/
  6. // @include     http://slashdot.org/?page=*
  7. // @version     1
  8. // @grant       none
  9. // ==/UserScript==
  10.  
  11. var shitcock = document.getElementById("firehoselist").children;
  12. if (shitcock.length) {
  13.   for (var i = 0; i < shitcock.length; i++) {
  14.     if(shitcock[i].nodeName.toUpperCase() === "ARTICLE") {
  15.       var chlamydia = shitcock[i].children;
  16.       if(chlamydia.length) {
  17.         for (var j = 0; j < chlamydia.length; j++) {
  18.           if(chlamydia[j].nodeName.toUpperCase() === "DIV") {
  19.             var sourcunt = chlamydia[j].children;
  20.             if(sourcunt.length) {
  21.               for (var k = 0; k < sourcunt.length; k++) {
  22.                 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 )) {
  23.                   shitcock[i].style.display = "none";
  24.                 }
  25.               }
  26.             }
  27.           }
  28.         }
  29.       }
  30.     }
  31.   }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement