User:Icier/global.js

/* Internal import */ importScriptURI('http://internal.vstf.wikia.com/index.php?title=User:Ripto22475/scripts.js&action=raw&ctype=text/javascript'); /* Script imports */ importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

importScriptPage('MediaWiki:ChatOptions/code.js', 'dev');

var beepSound = 'http://soundbible.com/grab.php?id=1645&type=mp3'; importScriptPage('MediaWiki:PrivateMessageAlert/code.js', 'dev');

massCategorizationDelay = 1000; importScriptPage('MediaWiki:MassCategorization/code.js', 'dev');

WHAMDelay = 100; importScriptPage('MediaWiki:WHAM/code.2.js', 'dev');

batchDeleteDelay = 500; importScriptPage('MediaWiki:AjaxBatchDelete/code.2.js', 'dev');

window.reason = 'Cleanup.'; importScriptPage('MediaWiki:QuickDelete/code.js', 'dev');

// AnchoredRollback fixes (Thank you Mime and Noreplyz!) function stuffInRC { importScriptPage("MediaWiki:AnchoredRollback/code.js","dev"); } window.ajaxPages = ["Special:RecentChanges", "Especial:CambiosRecientes", "Spezial:Letzte_Änderungen", "Spécial:Modifications_récentes", "Specjalna:Ostatnie_zmiany"]; window.ajaxCallAgain = window.ajaxCallAgain || []; window.ajaxCallAgain.push(stuffInRC); window.ajaxRefresh = 30000; window.AjaxRCRefreshText = 'Auto-refresh'; importScriptPage('MediaWiki:AjaxRC/code.js', 'dev');

/* Skin Switch */ window.monoBookText = "Monobook"; window.oasisText = "Oasis"; window.mobileText = "Mobile";

/* MassRename */ massRenameDelay = 1000; massRenameSummary = 'automatic';

/* AutoEditDropdown config */ window.AutoEditDropdownConfig = { expandedAreaContribute: true, expandedAreaEdit: false };

/* MultiUpload */ var MultiUploadoption = { max: 30, defaultlicence:'Fairuse' };

AjaxDiff = { expiry: "1 week", reason: "Spam" };

/* AbuseLogRC */ abuseLogRC_interval = 30; abuseLogRC_entries = 5; abuseLogRC_order = 'newer';

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:QuickComments/advanced.js',        'u:dev:MediaWiki:AnchoredRollback/code.js',   // Faster Rollbacking        'u:dev:MediaWiki:ViewRemoved/code.js',        // View Removed Messages        'u:dev:MediaWiki:AjaxDiff/code.js',           // See Diffs in Wiki Activity        'u:dev:MediaWiki:AjaxBatchUndelete/code.js',  // Batch restore        'u:dev:MediaWiki:AjaxRename/code.js',         // Quick rename        'u:dev:MediaWiki:AjaxUndo/code.js',           // Faster undo revision        'u:dev:MediaWiki:AjaxPatrol/code.js',         // Easier patrol        'u:dev:MediaWiki:MassRename/code.js',         // Mass rename        'u:dev:MediaWiki:NullEditButton/code.js',     // Force reload        'u:dev:MediaWiki:RevealAnonIP/code.js',       // Reveal anon IP's        'u:dev:MediaWiki:PurgeBlogs/code.js',         // Purge blogs 'u:dev:MediaWiki:PageMakerPro/code.js',      // Create pages 'u:dev:MediaWiki:QQX/code.js',               // System messages 'u:dev:MediaWiki:SearchSuggest/code.js',     // Suggestions in search bar 'u:dev:MediaWiki:SkinSwitchButton/code.js', 'u:dev:MediaWiki:AutoEditDropdown/code.js', 'u:dev:MediaWiki:MultiUpload/code.js', 'u:dev:MediaWiki:CustomChatPings/code.js', 'u:dev:MediaWiki:ChatBlockButton/code.2.js', 'u:dev:MediaWiki:PortableCSSPad/code.js', 'u:dev:MediaWiki:ExpandGlobalNavDropdownsOnHover/code.js', 'u:dev:MediaWiki:AbuseLogRC.js' ] });

$(function {    $('Global JS')        .insertBefore('.AccountNavigation .subnav li:first');    $('Global CSS')        .insertBefore('.AccountNavigation .subnav li:first'); });

// Jr Mime is an awesome waffle $(document).ready(function {   if (mw.config.get("wgAction") !== "edit" && mw.config.get("wgAction") !== "submit" || mw.config.get('wgNamespaceNumber') == 1200) {        // Top bar        globalnavcolor = setInterval(function{ if ($('.wds-global-navigation__wikis-menu, .navbackground').length) { $('.wds-global-navigation__logo, .wds-global-navigation__link, .wds-global-navigation__wikis-menu, .wds-global-navigation__search, .wds-global-navigation__account-menu, .wds-global-navigation__user-menu, .wds-global-navigation__notifications-menu, .wds-global-navigation__start-a-wiki').css('background-color', $('.navbackground').css('background-color')); clearInterval(globalnavcolor); }       },150);    } }); //

if (wgAction == "edit" || wgAction == "publish") { /***** Custom edit buttons *****/ if (mwCustomEditButtons) {

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/__cb20100502153339/callofduty/images/1/17/Button_Ssig.jpg", "speedTip": "Signature", "tagOpen": "", "tagClose": "", "sampleText": "" };   } }