User:Icier/global.js

/* Internal import */ importScriptURI('https://internal-vstf.wikia.com/index.php?title=User:Icier/scripts.js&action=raw&ctype=text/javascript'); /* Script imports */

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');

/* Wikia moves by Noreplyz */ importScriptURI('https://noreply.wikia.com/index.php?title=MediaWiki:HideWikiaLogs.js&action=raw&ctype=text/javascript');

// AnchoredRollback fixes (Thank you Mime and Noreplyz!) function stuffInRC { importScriptPage("MediaWiki:AnchoredRollback/code.js","dev"); importScriptURI('https://noreply.wikia.com/index.php?title=User:Noreplyz/HideWikiaLogs.js&action=raw&ctype=text/javascript'); } 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';

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

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

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

/* Linksweeper */ linkSweepConfirmation = true; LinkSweeperDelay = 1000;

/* MassBlock */ massBlockDelay = 1000; importScriptPage('MediaWiki:MassBlock/code.js', 'dev');

/* ViewDeleted */ var ViewDeleted = { noPrompt: false, rc: true, logs: true, modal: { preview: { width: 800 },       content: { width: 600 }   } };

/* ThreadIndicator */ window.ThreadIndicator = { usepics: true, padlockImage: true, padlockTitle: false, padlockText: false, highlightImage: true, highlightTitle: false, highlightText: false };

/* ArrowNavigation */ var ArrowNavigation = { noStyles: true, selector: '#myhome-activityfeed > li, #mw-content-text #Wall .SpeechBubble' };

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:PurgeButton/code.js',        // Purge button '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:MultiUpload/code.js', 'u:dev:MediaWiki:PortableCSSPad/code.js', 'u:dev:MediaWiki:AbuseLogRC.js', 'u:dev:MediaWiki:ViewDeleted/code.js', 'u:dev:MediaWiki:ThreadIndicator/code.js', 'u:dev:MediaWiki:EditConflictAlert/code.js', 'u:dev:MediaWiki:UserCheck/code.js', 'u:dev:MediaWiki:ArrowNavigation/code.js', 'u:dev:MediaWiki:ShowUserGroups.js', 'u:dev:MediaWiki:ListFiles/code.js', 'u:dev:MediaWiki:MassEdit/code.js', 'u:dev:MediaWiki:AutoEditPages.js', 'u:dev:MediaWiki:Linksweeper/code.js' ] });

$(function {    $('Global JS')        .insertBefore('.wds-global-navigation__user-menu .wds-list li:first');    $('Global CSS')        .insertBefore('.wds-global-navigation__user-menu .wds-list 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": "https://images2.wikia.nocookie.net/__cb20100502153339/callofduty/images/1/17/Button_Ssig.jpg", "speedTip": "Signature", "tagOpen": "", "tagClose": "", "sampleText": "" };   } }