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');

// ***************************************************************** // 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;

$( function {	/* Changes Recent activity link to Recent Changes */	$( 'a[data-id="wikiactivity"]' ).attr( 'href', '/wiki/Special:RecentChanges' ).html( 'Recent Changes' ); } );

// Skin Switch Button for monobook to oasis and vice versa // and for monobook and oasis to wikiamobile

$( function {	if ( !document.getElementById( 'ca-skins' ) ) {		if ( skin === 'oasis' || skin === 'wikia' ) {			$( 'MB' ).appendTo( '#AccountNavigation' ); $( 'WM' ).appendTo( '#AccountNavigation' );		} else {			$( 'Oasis' ).appendTo( '#p-cactions > .pBody > ul' ); $( 'Mobile</li>' ).appendTo( '#p-cactions > .pBody > ul' );		} 	} } );

importArticles({   type: 'script',    articles: [        'u:dev:AjaxRC/code.js',    ] });

/* */