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: [		'w:c:vstf:User:Joeyaa/wham.js',		'w:c:dev:MediaWiki:DisplayClock/code.js',		'w:c:vstf:User:Sactage/EasyCURangeCalc.js',		'w:c:dev:MediaWiki:AjaxRC/code.js',		'w:c:dev:MediaWiki:InactiveUsers/code.js',		'w:c:dev:MediaWiki:AutoEditDropdown/code.js',		'w:c:ty:User:TyA/namespaceNotify.js',		'w:c:community:User:TyA/accountNavigation.js',		'dev:GlobalEditcount/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($('.chat-join button').length != 0) { $('.chat-join 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-dropdown__toggle.wds-global-navigation__dropdown-toggle > img').wrap($("", { 		href: mw.config.get("wgServer") + "/wiki/User:" + mw.config.get("wgUserName") } ));