User:Azuris/global.js

/***** Links near username on header (whatever it's called) *****/ function restoreRecentChangesLink { var wlLink      = document.createElement('a'); wlLink.href     = '/wiki/Special:RecentChanges'; wlLink.title    = 'Recent changes'; wlLink.innerHTML = "Recent changes"; var wlObj       = document.createElement('span'); wlObj.id        = 'header_recentchanges'; wlObj.appendChild(wlLink); document.getElementById('userData').insertBefore(wlObj, document.getElementById('header_mytalk').nextSibling); } addOnloadHook(restoreRecentChangesLink); var wgEnableImageLightboxExt = false;

if (wgAction == "edit" || wgAction == "submit") {

/***** Custom edit buttons *****/ if (mwCustomEditButtons) {

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png", "speedTip": "Redirect", "tagOpen": "#REDIRECT ",        "tagClose": "", "sampleText": "PAGENAME"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c9/Button_strike.png", "speedTip": "Strike", "tagOpen": " ", "tagClose": " ", "sampleText": "Strike-through text"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/1/13/Button_enter.png", "speedTip": "Line break", "tagOpen": " ", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/7/74/Button_comment.png", "speedTip": "Comment visible only for editors", "tagOpen": "", "sampleText": "COMMENT"} } }