User:PanSola/monobook.js

// var TOOLSCRIPTPATH = 'User:PanSola/';

function DocWriteJS(page){ var str = ' '; //   alert(str); document.write(str); }

// Loads up ../DebugTools.js var DEBUGMODE = true; if (DEBUGMODE) { DocWriteJS('DebuggerInit.js'); DocWriteJS('DebugTools.js'); }

/* * Overwrites the original function in http://gw.gamewikis.org/skins/common/sorttable.js  * with User:PanSola/sortable_mod.js. */ function sortableTables { if (getElementsByClassName(document, "table", "sortable").length != 0) { DocWriteJS('sortable_mod.js'); } }

//

/*********************************************************************************************

Switchbox tools
*/

var overrideNamespaces; var cancelSearchswitch;

function includeJS( page, onWikia, expand ) { document.write(' '); }

var mwGroups = new Array(	{ value: '', data: '(all)' },	{ value: 'bot', data: 'Bots' },	{ value: 'sysop', data: 'Sysops' },	{ value: 'bureaucrat', data: 'Bureaucrats' } );

var mwNamespaces = new Array(	{ value: '0', data: '(Main)' },	{ value: '1', data: 'Talk' },	{ value: '2', data: 'User' },	{ value: '3', data: 'User talk' },	{ value: '4', data: 'GuildWiki' },	{ value: '5', data: 'GuildWiki talk' },	{ value: '6', data: 'Image' },	{ value: '7', data: 'Image talk' },	{ value: '8', data: 'MediaWiki' },	{ value: '9', data: 'MediaWiki talk' },	{ value: '10', data: 'Template' },	{ value: '11', data: 'Template talk' },	{ value: '12', data: 'Help' },	{ value: '13', data: 'Help talk' },	{ value: '14', data: 'Category' },	{ value: '15', data: 'Category talk' },	{ value: '100', data: 'Build' },	{ value: '101', data: 'Build talk' } );

if( skin == 'monobook' && !cancelSearchswitch ) includeJS( 'MediaWiki:Searchswitch.js', 'en.anime' );

/* */