User:GeorgeMoney/UserScripts/scriptstats
Appearance
//
//---------SCRIPT STATUS addOnloadHook(function(){ var outsetorg = document.createElement('div'); outsetorg.id = "scriptstatus"; outsetorg.innerHTML = " "; var outset = outsetorg; var h2f = document.getElementsByTagName('h1')[0]; h2f.parentNode.insertBefore(outset, h2f.nextSibling); if(document.getElementById('scriptstatus').innerHTML = " ") { document.getElementById('scriptstatus').style.display = "none"; } }); function changescmsg(msg,color,background,border,padding,extrastyle) { if(color=="") { var color = "black"; } if(background=="") { var background = "none"; } if(border == "") { var border = "none"; } if(padding=="") { var padding = "3px"; } if(extrastyle=="") { var extrastyle = ""; } if(msg) { document.getElementById('scriptstatus').innerHTML = '<div style="color: '+color+'; background: '+background+'; border: '+border+'; padding: '+padding+'; '+extrastyle+'">'+msg+'</div>'; document.getElementById('scriptstatus').style.display = "block"; } } //---------END //