// ==UserScript==
// @name Techdirt Comment Filter
// @namespace http://google.com
// @description Forces threading, hides stupid comments and the idiots who reply
// @author Sergey Brin
// @include http://www.techdirt.com/*
// @include https://www.techdirt.com/*
// @version 1.0
// @grant none
// ==/UserScript==
var loc = window.location.href;
var param = "threaded=true";
if (!(loc.match(param))) {
var locsuffix=(loc.match(/\?/))?"&threaded=true":"?threaded=true";
window.location.replace(loc + locsuffix);
}
var cmt = document.body.querySelectorAll("li.cmt");
for(var i=0;i<cmt.length;i++)if(cmt[i].innerHTML.match(/out_of_the_blue|mikey|milk/gim)){
var tr = cmt[i];
tr.style.display="none";
if(tr.nextElementSibling.nodeName == "UL"){
tr.nextElementSibling.style.display="none";
}
}