User:Cavalier One/global.js

/* */ // ***************************************************************** // Load various external scripts // *****************************************************************

EditIntroButtonText = 'I'; importScriptPage('User:Grunny/EditIntroButton.js', 'firefly');

PurgeButtonText = 'P'; importScriptPage('PurgeButton/code.js', 'dev');

importScriptPage('User:Grunny/autodel2.js', 'firefly');

importScriptPage( 'User:Grunny/wl.js', 'firefly' );

/* importScriptPage('User:Splarka/fastdelete.js', 'www'); */ importScriptPage('FastDelete/code.js', 'dev');

function importScriptPage (page, server) { var url = '/index.php?title=' + encodeURIComponent(page.replace(/ /g,'_')).replace('%2F','/').replace('%3A',':') + '&action=raw&ctype=text/javascript'; if (typeof server == "string") url = (server.indexOf('://') == -1)?'http://' + server + '.wikia.com' + url:server + url; return importScriptURI(url); } importScriptPage('AjaxRC/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 = []; if( wgCityId == '147'){ fdButtons[fdButtons.length] = { 'summary': '-- 1.3 Vandalism', 'label': 'V'}; fdButtons[fdButtons.length] = { 'summary': '-- 1.2 Nonsense', 'label': 'N'}; fdButtons[fdButtons.length] = { 'summary': '-- 1.1 Fanon', 'label': 'FN'}; fdButtons[fdButtons.length] = { 'summary': '-- 1.4 Spam', 'label': 'S'}; fdButtons[fdButtons.length] = { 'summary': '-- 2.1 CSD', 'label': 'SD'}; fdButtons[fdButtons.length] = { 'summary': ' ', 'label': 'nr'}; } else { fdButtons[fdButtons.length] = { 'summary': 'Vandalism', 'label': 'V'}; fdButtons[fdButtons.length] = { 'summary': 'Spam', 'label': 'S'}; fdButtons[fdButtons.length] = { 'summary': 'Nonsense', 'label': 'N'}; fdButtons[fdButtons.length] = { 'summary': 'Fanon', 'label': 'FN'}; fdButtons[fdButtons.length] = { 'summary': 'Speedy deletion', 'label': 'SD'}; fdButtons[fdButtons.length] = { 'summary': ' ', 'label': 'nr'}; }

window.wgEnableImageLightboxExt = false; /* */