User:Marphimon/global.js

//

if (mwCustomEditButtons) {

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/b/b7/Button_sig3.png", "speedTip": "Sig Template", "tagOpen": ", .  (UTC"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/4/4a/Button_welcome.png", "speedTip": "Willkommen-", "tagOpen": "", "sampleText": "subst:Willkommen"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images3.wikia.nocookie.net/central/images/2/29/Button_user.png", "speedTip": "-User Template-", "tagOpen": "", "sampleText": "w:User:P-MtaÄ"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images4.wikia.nocookie.net/central/images/b/bc/Usertalk.png", "speedTip": "-Diskuheader-", "tagOpen": "", "sampleText": "w:User:P-MtaÄ/Talkheader"};

}

// var ajaxPages = ["Special:RecentChanges", "Spezial:Letzte_Änderungen" , "Spécial:Modifications_récentes" , "Speciaal:RecenteWijzigingen" , "Specjalna:Ostatnie_zmiany" , "Speciale:UltimeModifiche" , "Especial:CambiosRecientes" , "????:????" , "?????????:RecentChanges", "Speciális:Friss_változtatások" , "Special:Senaste_ändringar" , "Special:????" , "??:?????????", "Especial:Mudanças_recentes" , "ns-116" , "ns-114" , "ns-112"]; var AjaxRCRefreshText = 'Auto-refresh'; var ajaxRefresh = 30000; importScriptPage('AjaxRC/code.js', 'dev');

/* answers js */ importScriptPage('AnswersEditButton/code.js', 'dev');

/********* delete js for now ***********/

function appendScript(url) { var scriptElem = document.createElement('script'); scriptElem.setAttribute('src',url); scriptElem.setAttribute('type','text/javascript'); document.getElementsByTagName('head')[0].appendChild(scriptElem); } appendScript('http://www.wikia.com/index.php?title=User:Angela/contribtools.js&action=raw&ctype=text/javascript&dontcountme=s'); importScriptPage('FastDelete/code.js', 'dev'); // ***************************************************************** // Custom automatic delete buttons // ***************************************************************** // Adds customizable one-click deletion buttons to any deletable page. // Requires w:User:Splarka/fastdelete.js in appendScript; var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'Spam', 'label': 'Delete spam'};

fdButtons[fdButtons.length] = { 'summary': 'nlr', 'label': 'nlr'}; // ***************************************************************** // Add some tool buttons to the top of articles in smoke/slate // ***************************************************************** function vskinTools { addMSBlink(wgScriptPath + 'index.php?title=' + wgPageName + '&action=edit','Edit'); addMSBlink(wgScriptPath + 'index.php?title=' + wgPageName + '&action=history','History'); addMSBlink(wgScriptPath + 'index.php?title=' + wgPageName + '&action=delete','Delete'); addMSBlink(wgScriptPath + 'index.php?title=' + wgPageName + '&action=protect','Protect'); addMSBlink(wgScriptPath + 'index.php?title=Special:Movepage/' + wgPageName,'Move'); } function addMSBlink(url,text) { var msbs = document.getElementById('myStuffBar').getElementsByTagName('a')[0].parentNode; var link = document.createElement('a'); link.href = url; link.appendChild(document.createTextNode(text)); link.style.marginLeft = '10px'; link.style.color = 'red'; msbs.appendChild(link); } if((skin=='slate')||(skin=='smoke')) addOnloadHook(vskinTools) //