User:Miekal/monobook.js

function botrollback { var rollbacklinks = getElementsByClassName(document.getElementById('bodyContent'),"*","mw-rollback-link"); var botrblinks = new Array; for (var j = 0; j< rollbacklinks.length; j++) { var rbbs = document.createElement('span'); var rba = rollbacklinks[j].getElementsByTagName('a')[0]; var rbba = document.createElement('a'); rbba.innerHTML = "as bot"; rbba.href = rba.href + '&bot=1'; if ( rollbacklinks[j].innerHTML[0] == "[" ) { rbbs.appendChild(document.createTextNode("[")); var blue_hack = document.createElement('a'); blue_hack.innerHTML = "rollback"; blue_hack.className = "mw-rollback-link"; blue_hack.href = rba.href; rbbs.appendChild(blue_hack); rbbs.appendChild(document.createTextNode(" | ")); }     rbbs.appendChild(rbba); if ( rollbacklinks[j].innerHTML[rollbacklinks[j].innerHTML.length-1] == "]" ) rbbs.appendChild(document.createTextNode("]")); if (rollbacklinks[j].nextSibling == undefined) { rollbacklinks[j].parentNode.appendChild(document.createTextNode(" ")); rollbacklinks[j].parentNode.appendChild(rbbs); rollbacklinks[j].parentNode.removeChild(rollbacklinks[j]); } else { rollbacklinks[j].parentNode.insertBefore(rbbs,rollbacklinks[j].nextSibling); rollbacklinks[j].parentNode.insertBefore(document.createTextNode(rbbs.nextSibling.textContent),rbbs); }     botrblinks.push(rbbs); } for (var j = 0; j< botrblinks.length; j++) { botrblinks[j].className = "mw-rollback-link"; } } addOnloadHook(botrollback);

/* $('ul.special>li').filter('li:contains("oderat")').css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#FFFFCC"}); $('ul.special>li').filter('li:contains("coop")').css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#FFFFCC"}); $('ul.special>li').filter('li:contains("lection")').css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#FFFFCC"}); $('ul.special>li').filter('li:contains("reationis")').css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#FFFFCC"}); $('ul.special>li').filter('li:contains("ommunity")').css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#FFFFCC"}); $('ul.special>li').filter('li:contains("rwf")').css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#FFFFCC"}); $('ul.special>li').filter('li:contains("RWF")').css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#FFFFCC"}); $('ul.special>li').filter('li:contains("oundation")').css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#FFFFCC"}); $('ul.special>li').filter('li:contains("Vot")').css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#FFFFCC"}); $('ul.special>li').filter('li:contains("vot")').css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#FFFFCC"}); $('ul.special>li').filter('li:contains("rights")').css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#FFFFCC"}); $('ul.special>li').filter('li:contains("Rights")').css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#FFFFCC"});

$('ul.special>li>a[href*="User:Proxima_Centauri"]').parent.css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#F3D4D5"});

$('ul.special>li>a[href*="User:Ace_McWicked"]').parent.css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#E3FBFF"}); $('ul.special>li>a[href*="User:Sterile"]').parent.css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#E3FBFF"}); $('ul.special>li>a[href*="User:Tmtoulouse"]').parent.css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#E3FBFF"}); $('ul.special>li>a[href*="User:Human"]').parent.css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#E3FBFF"}); $('ul.special>li>a[href*="User:El_Taj"]').parent.css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#E3FBFF"}); $('ul.special>li>a[href*="User:Crundy"]').parent.css({"border" : "1px black dotted", "border-radius" : "3px", "background-color" : "#E3FBFF"});

$('ul.special>li>a[href*="User_talk:Brasov"]').parent.remove; $('ul.special>li>a[href*="User:Brasov"]').parent.remove; $('ul.special>li>a[href*="User:Dirk_Steele"]').parent.remove; $('ul.special>li>a[href*="User:Abd"]').parent.remove; $('ul.special>li>a[href*="User_talk:Inquisitor_Ehrenstein"]').parent.remove;

$('ul.special>li>a[href*="User:Captain_Swing"]').parent.remove; $('ul.special>li>a[href*="User:Nutty_Roux"]').parent.remove;

function blocklog{ if (wgCanonicalSpecialPageName == "Recentchanges"){ var wlist = getElementsByClassName(document.getElementById('bodyContent'),"ul","special"); var x; for (x=0;x=0;i=i-1) {    var bads=list[i].getElementsByTagName("a"); var j=0; for (j=0;j 0) {           parent.removeChild(list[i]); }    }   }  }  } } addOnloadHook(blocklog);