User:Tyilo/global.js

//

function init {   if(wgAction == 'edit' || wgAction == 'submit') {       if(wgPageName.match(/^[^:]*talk:/i) || wgPageName.match(/^Forum:/)) {   	    $('#wpSave').click(function(e)    	    {    	    	if(!$('#wpTextbox1').val.match(''))    	        {    	            if(!confirm('It looks like you forgot to sign your comment.\nWould you like to post it anyway?'))    	            {    	                e.preventDefault;    	            }    	    	}    	    }); }       $('#wpTextbox1').css('font-family', 'Consolas').css('font-size', '1em'); }   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);

//