User:Brother Officer/common.js

function colourBackground( pageBG, editboxBG, fontColour, linkColour, newLinkColour, extLinkColour){ $('#content').css('background-color', pageBG) $('#content').css('color', fontColour) $('a').css('color', linkColour) $('.new').css('color', newLinkColour) $('.extiw').css('color', extLinkColour) $('textarea, input').css('background-color', editboxBG) } if (wgAction == "edit" || wgAction=="submit"){ addOnloadHook( function {setTimeout("colourBackground('#DDD', '#DDD', '#222', '#22F', '#BA0000', '#33F')", 500)}); } if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/8/8b/Button_m-dash.png", "speedTip": "M-dash", "tagOpen": '—', "tagClose": '', "sampleText": ""}; }; if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/8/8b/Button_n-dash.png", "speedTip": "N-dash", "tagOpen": '–', "tagClose": '', "sampleText": ""}; };