User:TyA/global.js

importScriptURI('http://internal-vstf.wikia.com/index.php?title=User:TyA/scripts.js&action=raw&ctype=text/javascript');

// Script config area AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:Log","Special:Contributions"]; var ajaxindicator = 'http://images1.wikia.nocookie.net/__cb20100617113125/dev/images/e/e4/3D_throbber.gif'

InactiveUsers = { months: 2 };

var AutoEditDropdownConfig = { expandedAreaEdit: true };

//script imports importArticles({	type: 'script',	articles: [		'dev:MediaWiki:WHAM/code.js',		'dev:MediaWiki:UTCClock/code.js',		'w:c:vstf:User:Sactage/EasyCURangeCalc.js',		'dev:MediaWiki:AjaxRC/code.js',		'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',		'dev:MediaWiki:FastDelete/code.js',		'dev:LinkToDiscussionsProfileIfTheyDontHaveLivePosts/code.js'	] });

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

/* Custom edit buttons */ if ( mwCustomEditButtons ) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images3.wikia.nocookie.net/zammy/images/0/0d/Global_page.png", "speedTip": "Global userpage", "tagOpen": "", "tagClose": "", "sampleText": "" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/zammy/images/b/b3/Bot_page.png", "speedTip": "Bot userpage", "tagOpen": "", "tagClose": "", "sampleText": "" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images3.wikia.nocookie.net/zammy/images/f/ff/Signature_two.png", "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") + "/wiki/User:" + mw.config.get("wgUserName") } ));