User:Afker/monobook.js

/* */ /* document.write(' '); //var switcher = makeDropDownSwitcher; /* */

var include = { js: { included: { url: {}, wikipage: {} },		// Raw Function: Do not use. raw: function( src, text ) { var js = document.createElement( 'script' ); if( js.setAttribute ) { js.setAttribute( 'type', 'text/javascript' ); if( typeof src == "string" ) js.setAttribute( 'src', src ); } else { js.type = 'text/javascript'; if( typeof src == "string" ) js.src = src; }			if( typeof text == "string" ) { var textNode = document.createTextNode( text ); js.appendChild( textNode ); }			document.getElementsByTagName('head')[0].appendChild( js ); },		url: function( url ) { if( include.js.included.url[url] ) return; include.js.included.url[url] = true; include.js.raw( url, undefined ); },		wikipage: function( pageTitle, server, expandTemplates ) { var url = '/index.php?title=' + encodeURIComponent( pageTitle.replace( / /g, '_' ) ) + '&action=raw&ctype=text/javascript'; if( typeof server == "string" ) { if( server.indexOf( '://' ) == -1 ) url = 'http://' + server + '.wikia.com' + url; else url = server + url; }			if( expandTemplates != false ) url = url + '&templates=expand'; include.js.url( url ); },		code: function( code ) { include.js.raw( undefined, code ); }	},	css: { included: { url: {}, wikipage: {} },		// Raw Function: Do not use. raw: function( text ) { var css = document.createElement( 'style' ); if( css.setAttribute ) { css.setAttribute( 'type', 'text/css' ); } else { css.type = 'text/css'; }			if( typeof text == "string" ) { var textNode = document.createTextNode( text ); css.appendChild( textNode ); }			document.getElementsByTagName('head')[0].appendChild( css ); },		url: function( url ) { if( include.css.included.url[url] ) return; include.css.included.url[url] = true; include.css.raw( '@import "' + url + '";' ); },		wikipage: function( pageTitle, server, expandTemplates ) { var url = '/index.php?title=' + encodeURI( pageTitle ) + '&action=raw&ctype=text/css'; if( typeof server == "string" ) { if( server.indexOf( '://' ) == -1 ) url = 'http://' + server + '.wikia.com' + url; else url = server + url; }			if( expandTemplates != false ) url = url + '&templates=expand'; include.css.url( url ); },		code: function( code ) { include.css.raw( code ); }	} };

var WGEPinitialized; var mwNamespaces; var mwGroups; if( !WGEPinitialized ) { var cancelAnime = true; if( !mwNamespaces ) var overrideNamespaces = 'User:Dantman/namespaces.js'; if( !mwGroups ) var overrideGroups = 'User:Dantman/groups.js'; include.js.wikipage( 'MediaWiki:Anime-Common.js', 'anime' ); } include.js.wikipage( 'User:Dantman/global.config.js', 'origin-www' );