User:Marphimon/global.js

// importScriptURI('http://c.wikia.com/index.php?title=User:Monchoman45/ChatHacks.js&action=raw&ctype=text/javascript');

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"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "speedTip": "-INTERWIKIBOT-", "tagOpen": "", "sampleText": "w:User:MtaÄ/InterwikiBot"};

}

// var ajaxPages = ["Special:RecentChanges", "Spezial:Letzte_Änderungen" , "Spécial:Modifications_récentes" , "Speciaal:RecenteWijzigingen" , "Specjalna:Ostatnie_zmiany" , "Speciale:UltimeModifiche" , "Especial:CambiosRecientes" , "Special:最近更改" , "Служебная:RecentChanges"]; 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': '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)

//WHAM importScriptPage('User:Joeyaa/wham.js','vstf'); importScriptPage('Benutzer:MtaÄ/global.js/addition.js','meerundmehr'); /* //still messy with TOC links or others that apply #something to the url //wikia.js

$( function {    if( $.getUrlVar( 'useskin' ) == 'wikia' ) {        $( 'a' ).each( function  { if( $( this ).attr( 'href' ) === undefined ) { return; }           if( $( this ).attr( 'href' ).indexOf( '#' ) === -1 ) { $( this ).attr( 'href', $( this ).attr( 'href' ) + ( ( $( this ).attr( 'href' ).indexOf( '?' ) === -1 ) ? '?useskin=wikia' : '&useskin=wikia' ) ); } else { $( this ).attr( 'href', $( this ).attr( 'href' ).split( '#' )[0] + ( ( $( this ).attr( 'href' ).indexOf( '?' ) === -1 ) ? '?useskin=wikia' : '&useskin=wikia' ) + '#' + $( this ).attr( 'href' ).split( '#' )[1] ); }       } );    } } );

//monobook.js

$( function { if( wgAction !== 'edit' && wgAction !== 'submit' && skin == 'monobook' ) { location.href = location.href + ( ( location.href.indexOf( '?' ) === -1 ) ? '?useskin=wikia' : '&useskin=wikia' ); } } ); //force 'edit' $(function { $('a[data-id="edit"]').html('Edit'); });

//