User:Tyilo/global.js

//

function init {   if(wgAction == 'edit' || wgAction == 'submit') {       document.getElementById('wpTextbox1').style.fontFamily = 'monospace'; }   if(mwEditButtons) {	for (var a = 0; a < mwEditButtons.length; a++) {           if (mwEditButtons[a].imageId == 'mw-editbutton-signature') {               if(wgServer == 'http://runescape.wikia.com') {                   mwEditButtons[a].tagOpen = ' '; }               else {                   mwEditButtons[a].tagOpen = '~'; }           }        }        var trickbutton, trickbuttonimgs; if((trickbutton = document.getElementById('talkpagetext')) && (trickbuttonimgs = trickbutton.getElementsByTagName('img')) && trickbuttonimgs[0]) {           trickbuttonimgs[0].onclick = document.getElementById('mw-editbutton-signature').onclick; trickbuttonimgs[0].style.cursor = 'pointer'; }   } } addOnloadHook(init);

//