What.cd forum user blocklist

By brtkrbzhnv Last update Jun 1, 2010 — Installed 313 times.

There are 1 previous version of this script.

// ==UserScript==
// @name           What.cd forum user ignorer
// @namespace      http://www.google.com/search?q=brtkrbzhnv
// @description    Hides posts by silly people
// @include        http://what.cd/forums.php?action=viewthread&threadid=*
// @include        http://what.cd/forums.php?page=*
// @include        https://ssl.what.cd/forums.php?action=viewthread&threadid=*
// @include        https://ssl.what.cd/forums.php?page=*
// ==/UserScript==

// 2010-06-01 update: added the https includes
k="whatcdignoreuserwithid=";
s="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAA3NCSVQICAjb4U/gAAAAk1BMVEXQw8HKtrLAqqb1kYblh3n4e26yioX6bGCseG7TbF37X1TnY1b6VkymbGH7Sj/aUkSgYFP0OS6eUUHNPS+TRzj+JRurOinMLSCaNSL9FwrSIxWINirdHhHYGgDpFQDvEQCqJBH2DgCHLRz8DAHiFAHNGQvCGQDZDwCTIQ2BIQ6/EAGpEwCfFQGSFACCFgJ7FAD///91PAPPAAAAMXRSTlP///////////////////////////////////////////////////////////////8AH5pOIQAAAAlwSFlzAAALEgAACxIB0t1+/AAAACB0RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgTVi7kSokAAAAFnRFWHRDcmVhdGlvbiBUaW1lADEwLzAyLzA1CBTb+gAAAMlJREFUeJw1j+FygjAQhC8iFIWggQOFCoKgSYrJ5f2fzpC2O3Mz++2fvQXnBRwfD0wgeH+cmsN+f2go/Q2+VRbHURTFmTpvAVf5sbFE1+wrV6kDsKJQJbgdnY65IAA+irF0jukqryoxJoC3mmDjoqJRdAjU1uT5Ulz0juqbD6aWmO5Ep5mjdkFAORt61k/PzM4Sga/TIueNHf7Ma+Jrl2mSxByU5i59reNmuUtDZNdhMGl43fRDUG/Of+Ps+9X3r/f/uDBfa+TBfwDTkR3R7CD2QwAAAABJRU5ErkJggg==";
main();
function main() {
for (A=x("//TD[@class='avatar']"), i=0;a=A.snapshotItem(i++);)
  (p=a.parentNode).setAttribute("userid", (í=(h=(c=p.previousSibling.previousSibling).getElementsByTagName("a")[1].href).substring(h.indexOf('=')+1))), 
  (GM_getValue(k+í))?p.style.display="none":0, 
  (ś=c.getElementsByTagName("span")[0]).appendChild(ı=document.createElement("img")).setAttribute("src",s),
  ı.addEventListener("click",ħ(í),false);
}
function x(q){
  return document.evaluate(q, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
}
function ħ(i){return function(){
  for (E=x("//tr[@userid='"+i+"']"),ı=0;e=E.snapshotItem(ı++);)
    GM_setValue(k+i, (e.style.display)=(e.style.display=="none")?(""):("none"));
  };
}