User:9cfilorux/hideblocklinks.js

/* Hide block links on recent changes, history, diffs and user lists * This relies on the class name for these links, so it won't work on 1.27 and under. */

if(document.getElementsByClassName("mw-usertoollinks")[0]) { var toollinks = document.getElementsByClassName("mw-usertoollinks"); var i;   for (i = 0; i < toollinks.length; i++) { if(toollinks[i].getElementsByClassName("mw-usertoollinks-block")[0]) { toollinks[i].removeChild(toollinks[i].getElementsByClassName("mw-usertoollinks-block")[0]); toollinks[i].innerHTML = toollinks[i].innerHTML.replace(" | )", ")").replace("| |", "|"); }   } }