Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Techdirt Comment Filter
- // @namespace http://google.com
- // @description Hides out_of_the_blue comments on Techdirt
- // @author Sergey Brin
- // @include http://www.techdirt.com/*
- // @include https://www.techdirt.com/*
- // @version 1.0
- // @grant none
- // ==/UserScript==
- var myloc = window.location.href;
- var myparam = "threaded=true";
- if (!(myloc.match(myparam))) {
- var mylocSuffix=(myloc.match(/\?/))?"&threaded=true":"?threaded=true";
- window.location.replace(myloc + mylocSuffix);
- }
- var as = document.body.querySelectorAll("li.cmt");
- for(var i=0;i<as.length;i++)if(as[i].innerHTML.match(/out_of_the_blue/gim)){
- var tr = as[i];tr.style.display="none";
- tr.nextElementSibling.style.display="none";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement