User:SonjaNBohm/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('#E6D7C3', '#E6D7C3', '#222', '#22F', '#BA0000', '#33F')", 100)}); }

if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/8/83/Button_biocitas.png", "speedTip": "Author link", "tagOpen": 'Author:',    "tagClose": '', "sampleText": "Insert link here"}; }; 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": ""}; };

if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/cd/Button_poem.png", "speedTip": "Break & gap", "tagOpen": ' \n', "tagClose": '', "sampleText": ""}; };