User:Maulle/global.js

/******************************/ /*   Special:Chat Scripts    */ /******************************/ var ChatHacksLoaded = true; if (ChatHacksLoaded === true) { ChatHacksLoaded = true; importScriptPage('ChatOptions/code.js', 'dev'); importScriptPage('MessageBlocker/code.js', 'dev'); importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); } /***************************/ /*   Site-wide Scripts    */ /***************************/ AjaxRCRefreshText = 'Refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = [ "Special:RecentChanges", "Special:WikiActivity", "Special:Contributions", "Special:NewFiles", "Special:BlockList", "Special:Log" ];

/* Creates Back To Top Button In Footer */ var Speed = 50; /* InactiveUsers */ InactiveUsers = { months: 1 }; /* AdvancedOasisUI */ window.AdvancedOasisUI = { accountNavFollowedPages: true, accountNavWatchlist: true, categoryRedlink: true, RCHeader: true, DefaultSourceMode: true, lightbox: false, randomPageLimitedTo: '', activity2RC: false, userLang: false };

importArticles({	type: "script",	articles: [       'w:c:dev:WHAM/code.js',        'w:c:dev:AjaxBatchDelete/code.js',        'w:c:dev:AjaxUndo/code.js',        'w:c:dev:AjaxRC/code.js',        'w:c:dev:AdvancedOasisUI/code.js',	'w:c:dev:RevealAnonIP/code.js',	'w:c:dev:View_Source/code.js',        'w:c:dev:CategoryRenameAuto-update/code.js',	'w:c:dev:PageMakerPro/code.js',        'w:c:admintools:MediaWiki:Wikia.js',        'w:c:dev:QuickTools/advanced.js',	'w:c:dev:InactiveUsers/code.js',	'w:c:dev:Thread Inspection/code.js',	'w:c:dev:FastOldImageDelete/code.js',	'w:c:dev:FixWantedFiles/code.js',	'w:c:dev:CacheCheck/code.js',	'w:c:dev:ListFiles/code.js',	'w:c:dev:PortableCSSPad/code.js'    ] });

// 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' ).appendTo( '#p-cactions > .pBody > ul' );		} 	} } );

/* Function */ function addLinks(id, link, link_title){ var l = '<a href="' + link + '">' + link_title + '</a></li>'; $('.WikiaBarWrapper .tools #my-tools-menu').append(l); } function insertLinks{ addLinks('leaderboard', '/wiki/Special:Leaderboard', 'Leaderboard'); addLinks('monobook', '?useskin=monobook', 'Mono'); addLinks('wikiamobile', '?useskin=wikiamobile', 'Mobile'); addLinks('forum', '/wiki/Special:Forum', 'Forum'); addLinks('chat', '/wiki/Special:Chat', 'Chat'); addlinks('system messages', '/wiki/Special:allmessages', 'System'); addlinks('recentchanges', '/wiki/Special:Recentchanges', 'Recent'); } addOnloadHook(insertLinks); function addCSS(style){ var x = '<style type="text/css">' + style + ' '; $('head').append(x); } function configureCSS{ addCSS($('#css').text); }