User:Gimmethegepgun/monobook.js

// links for admins and bcrats

/*function addBar { document.getElementById('column-one').innerHTML += ' '+ ' '+  ' Command Center '+ ' '+ 'Deletion'+ 'Banning'+ 'Block User'+ 'MediaWiki messages</li>'+ '<a href=\"/wiki/User:Gimmethegepgun/monobook.css">My .css</a></li>'+ '<a href=\"/wiki/User:Gimmethegepgun/monobook.js">My .js</a></li>'+ '</ul> '; }

addOnloadHook(addBar); function addHTML (html) { if (document.all) document.body.insertAdjacentHTML('beforeEnd', html); else if (document.createRange) { var range = document.createRange; range.setStartAfter(document.body.lastChild); var docFrag = range.createContextualFragment(html); document.body.appendChild(docFrag); } else if (document.layers) { var l = new Layer(window.innerWidth); l.document.open; l.document.write(html); l.document.close; l.top = document.height; document.height += l.document.height; l.visibility = 'show'; } }

function topBar { addHTML(' <a href=\"/wiki/Category:Candidates for deletion">Deletion</a></li><a href=\"/wiki/Category:Candidates for banning">Banning</a></li><a href=\"/wiki/Special:Allmessages">MediaWiki messages</a></li><a href=\"/wiki/User:Gimmethegepgun/monobook.css">.css</a></li><a href=\"/wiki/User:Gimmethegepgun/monobook.js">.js</a></li></ul>'); }

addOnloadHook(topBar);