User:Killr833/wikiabits.js

(function {

var wikiaElements = (function {   var a = [];    var re = new RegExp('\\bwikiaSkinMonaco\\b');    var re2 = new RegExp('\\bwikiaSkinMonobook\\b');    var els = document.getElementsByTagName('body');    for(var i=0,j=els.length; i<j; i++)        if(re.test(els[i].className))a.push(els[i]);    for(var i=0,j=els.length; i<j; i++)        if(re2.test(els[i].className))a.push(els[i]);    return a; )

if(wikiaElements.length < 0) { wikia = true; }

if(wikia == true) { wikia.prototype.skin = (function {       if(skin == 'monaco' || skin == 'monobook' || skin == 'wikiaphone')            return skin;    }    wikia.prototype.rights = {        'rollback' : (function { var a;           for(var i=0,j=wgUserGroups.length; i<j; i++) { if(wgUserGroups[i] == 'rollback' || wgUserGroups[i] == 'sysop' || wgUserGroups[i] == 'staff' || wgUserGroups[i] == 'helper' || wgUserGroups[i] == 'vstf') a = true; else if(a != true) a = false; }           return a;        } } }