User:TyA/global.js

importScriptURI('https://internal-vstf.fandom.com/index.php?title=User:TyA/scripts.js&action=raw&ctype=text/javascript'); importScriptURI('//internal-community.fandom.com/wiki/User:Jr Mime/WhatIsThisImport.js?action=raw&ctype=text/javascript&templates=expand');

// Script config area AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:Log","Special:Contributions"]; var ajaxindicator = 'https://vignette.wikia.nocookie.net/dev/images/e/e4/3D_throbber.gif/revision/latest?cb=20100617113123'

InactiveUsers = { months: 2 };

var AutoEditDropdownConfig = { expandedAreaEdit: true };

//script imports importArticles({	type: 'script',	articles: [		'u:dev:MediaWiki:WHAM/code.js',		'u:dev:MediaWiki:UTCClock/code.js',		'w:c:vstf:User:Sactage/EasyCURangeCalc.js',		'u:dev:MediaWiki:AjaxRC/code.js',		'u:dev:MediaWiki:InactiveUsers/code.js',		'w:c:community:User:TyA/AutoEditDropdown.js',		'w:c:ty:User:TyA/namespaceNotify.js',		'w:c:community:User:TyA/accountNavigation.js',		'u:dev:MediaWiki:FastDelete/code.js',		'u:dev:LinkToDiscussionsProfileIfTheyDontHaveLivePosts/code.js',		'u:dev:MediaWiki:CacheCheck/code.js',		'u:dev:MediaWiki:RedirectManagement/code.js'	] });

importArticles({   type: "style",    articles: [        "u:dev:Highlight/code.css"    ] });

/* Custom edit buttons */ if ( mwCustomEditButtons ) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://vignette.wikia.nocookie.net/zammy/images/0/0d/Global_page.png/revision/latest?cb=20120413145914", "speedTip": "Global userpage", "tagOpen": "", "tagClose": "", "sampleText": "" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://vignette.wikia.nocookie.net/zammy/images/b/b3/Bot_page.png/revision/latest?cb=20120413145915", "speedTip": "Bot userpage", "tagOpen": "", "tagClose": "", "sampleText": "" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://vignette.wikia.nocookie.net/zammy/images/f/ff/Signature_two.png/revision/latest?cb=20120413145916", "speedTip": "Sign on Wikis without Template:NoSubst", "tagOpen": " " + ""+""+"~", "tagClose": "", "sampleText": "" }; }

/* Lets the join chat button open in a new tab. Taken from Monchoman */ $(setTimeout('ChatCheck', 200)); function ChatCheck { if($('.start-a-chat-button').length != 0) { $('.start-a-chat-button').replaceWith('Join the Chat'); } else { setTimeout('ChatCheck', 200); }   }    function OpenChatWindow { window.chatwindow = window.open('/index.php?title=Special:Chat&useskin=wikia'); } /* end moncho's chat thing */

// Have the user icon on the global nav link to userpage $('.wds-global-navigation__user-menu').wrap($("", { 		href: mw.config.get("wgServer") + mw.config.get("wgScriptPath") + "/wiki/User:" + mw.config.get("wgUserName") } ));