User:PanSola/monobook.js

//

var TOOLSCRIPTPATH = 'User:PanSola/';

function DocWriteJS(partialPage){ insertSubscript(partialPage); }

// Loads up ../DebugTools.js var DEBUGMODE = true;

insertScript('MediaWiki:TemplateTools.js'); if (wgPageName == "GuildWiki:April_Fools_2008"){ insertExternalCSS('http://www.wikia.com/index.php?title=User:PanSola/Sandbox/1.css&action=raw&ctype=text/css&smaxage=18000'); insertExternalCSS('http://images.wikia.com/common/skins-200803.3/wowwiki/main.css?20080318165830'); insertExternalCSS('http://www.wowwiki.com/index.php?title=MediaWiki:Common.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000'); insertExternalCSS('http://www.wowwiki.com/index.php?title=MediaWiki:Wowwiki.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000'); insertExternalCSS('http://www.wowwiki.com/index.php?title=-&action=raw&gen=css&maxage=18000'); }

/* * Overwrites the original function in http://gw.gamewikis.org/skins/common/sorttable.js  * with User:PanSola/sortable_mod.js. Commented out function sortableTables { if (getElementsByClassName(document, "table", "sortable").length != 0) { insertSubscript('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', 'anime' );

/* */