User:Nerfmaster8/global.js

var fdButtons = []; fdButtons[fdButtons.length] = {'summary': 'vandalism', 'label': 'V'}; fdButtons[fdButtons.length] = {'summary': 'spam', 'label': 'S'}; fdButtons[fdButtons.length] = {'summary': 'Duplicate information', 'label': 'Dup'}; fdButtons[fdButtons.length] = {'summary': 'poor image', 'label': 'image'}; fdButtons[fdButtons.length] = {'summary': 'Disruptive', 'label': 'disrupt'}; fdButtons[fdButtons.length] = {'summary': 'Violation of the ToU', 'label': 'ToU'};

importScriptPage('MediaWiki:ChatOptions/code.js', 'dev'); importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('MediaWiki:MessageBlocker/code.js', 'dev');

importArticles({	type: 'script',	articles: [	'u:dev:MediaWiki:AjaxBatchDelete/code.2.js',	'u:dev:MediaWiki:MassBlock/code.js',	'u:dev:MediaWiki:MassProtect/code.js',	'u:dev:MediaWiki:MassCategorization/code.js',	'u:dev:MediaWiki:WHAM/code.2.js',	'u:dev:MediaWiki:QuickDelete/code.js',	'u:dev:MediaWiki:FastDelete/code.js',	'u:dev:MediaWiki:MarkForDeletion/code.js',	'u:dev:MediaWiki:AjaxRC/code.js',	'u:dev:MediaWiki:AjaxUndo/code.js',	'u:dev:MediaWiki:ContribsLink/code.js',	'u:dev:ListFiles/code.js'	] });

/* Make Visual Editor links load the regular editor instead */ if ($.getUrlVar('veaction') == 'edit') { location.replace(document.URL.replace('veaction','action')); }

if (window.location.pathname.indexOf('Special:InfoboxBuilder') != -1) { var name = window.location.pathname.split('Special:InfoboxBuilder/')[1]; location.replace(document.URL.replace(window.location.href.split('/wiki/')[1],'Template:'+name+'?action=edit&useeditor=source')); }

// ********************************** // Kill image popup (from Rappy 4187) // ********************************** $(function changeimagelinks {   if (window.skin == 'oasis') {        var article = $('#WikiaArticle, .LatestPhotosModule, #article-comments');    }    else {        var article = $('#bodyContent');    }    article.unbind('click.lightbox');    var a = document.getElementsByTagName("a");    for ( var t = 0; t < a.length; ++t ) {        var a2 = a[t];        var img = a2.getElementsByTagName("img");        if ( img[0] != null ) {            if ( a2.href.indexOf("wikia.nocookie.net") != -1 ) {                var link = wgServer + '/wiki/File:' + a2.getAttribute('data-image-name');                a2.setAttribute('href',link);            }        }    } });