User:Guandalug/monobook.js

importScript('User:Ais523/adminrights.js');

$(function {   var farbe = '';   if ( document.getElementById('ca-edit') ) {       var obj  = document.getElementById('ca-edit');       var temp = String(wgRestrictionEdit);       if (temp == 'autoconfirmed') {           farbe = '#ffa500';       } else if (temp == 'sysop') {           farbe = '#ff6a6a';       }   }    if ( document.getElementById('ca-viewsource') ) {       var obj = document.getElementById('ca-viewsource');       farbe = '#ff0000';   }   if ( obj ) {       obj.firstChild.style.backgroundColor = farbe;   } });