User:Spydar007/global.js

//** Icons - will be moved back to User:Spydar007/icons.js once Wikia reenable other personal JS pages **// /* Global icon suffixes * Fully updated with every user under Special:ListUsers * Users with single rights use User:Spydar007/highlight.css * List correct as of May 5, 2016 19:13 (UTC) */ /* Global Bot and helper — bot-global + helper */ gbotHelper = [ "/wiki/User:Wildtech", ]; for (var gbotHelperI = 0; gbotHelperI < gbotHelper.length; gbotHelperI++) { $('a[href="' + gbotHelper[gbotHelperI] + '"]').each(function {               $(this).append('');        }); }

/* Global Bot and Utilities — bot-global + util */ gbotUtil = [ "/wiki/User:QATestsStaff", ]; for (var gbotUtilI = 0; gbotUtilI < gbotUtil.length; gbotUtilI++) { $('a[href="' + gbotUtil[gbotUtilI] + '"]').each(function {               $(this).append('');        }); }

/* Global Bot, Utilities and Content Reviewer — bot-global + util + content-reviewer */ gbotUtilContent = [ "/wiki/User:Wikia", ]; for (var gbotUtilContentI = 0; gbotUtilContentI < gbotUtilContent.length; gbotUtilContentI++) { $('a[href="' + gbotUtilContent[gbotUtilContentI] + '"]').each(function {               $(this).append('');        }); } /* Star and Helper — wikiastars + helper */ starHelper = [ "/wiki/User:Espartannoble6", ]; for (var starHelperI = 0; starHelperI < starHelper.length; starHelperI++) { $('a[href="' + starHelper[starHelperI] + '"]').each(function {               $(this).append('');        }); }

/* Star, Helper and Utilities — wikiastars + helper + util */ starHelperUtil = [ "/wiki/User:Kuzura", "/wiki/User:Zeist_Antilles", ]; for (var starHelperUtilI = 0; starHelperUtilI < starHelperUtil.length; starHelperUtilI++) { $('a[href="' + starHelperUtil[starHelperUtilI] + '"]').each(function {               $(this).append('');        }); } /* Star, Utilities, Image Reviewer, Wiki Factory and Voldev — wikiastars + util + voldev */ starUtilVoldev = [ "/wiki/User:JCel", ]; for (var starUtilVoldevI = 0; starUtilVoldevI < starUtilVoldev.length; starUtilVoldevI++) { $('a[href="' + starUtilVoldev[starUtilVoldevI] + '"]').each(function {               $(this).append('');        }); } /* Star and Council — wikiastars + council */ starCouncil = [ "/wiki/User:Agent_c", "/wiki/User:Babar_Suhail", "/wiki/User:BachLynn23", "/wiki/User:Cheesedude", "/wiki/User:ClericofMadness", "/wiki/User:C%C3%B6rey", /* for some browsers */ "/wiki/User:Cörey", "/wiki/User:Kitsufox", "/wiki/User:Peteparker", "/wiki/User:ProfessorTofty", "/wiki/User:QueenBuffy", "/wiki/User:SnowedLightning", "/wiki/User:Sulfur", "/wiki/User:T3CHNOCIDE", "/wiki/User:The_Milkman", "/wiki/User:TombRaiser", "/wiki/User:Trak_Nar", "/wiki/User:TwoBearsHigh-Fiving", ]; for (var starCouncilI = 0; starCouncilI < starCouncil.length; starCouncilI++) { $('a[href="' + starCouncil[starCouncilI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/2/2a/Group_Icon.png" width="16" height="16"/>');        }); } /* Star, Council and Vanguard — wikiastars + council + vanguard */ starCouncilVanguard = [ "/wiki/User:Rodri_cyberdog", "/wiki/User:TwoTailedFox", ]; for (var starCouncilVanguardI = 0; starCouncilVanguardI < starCouncilVanguard.length; starCouncilanguardI++) { $('a[href="' + starCouncilVanguard[starCouncilVanguardI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/2/2e/Star.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/2/2a/Group_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/6/64/Developer_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/c/ce/Vanguard_Icon.png" width="16" height="16"/>');        }); }

/* Star, Council and Voldev — wikiastars + council + voldev */ starCouncilVoldev = [ "/wiki/User:Sactage", "/wiki/User:sactage", ]; for (var starCouncilVoldevI = 0; starCouncilVoldevI < starCouncilVoldev.length; starCouncilVoldevI++) { $('a[href="' + starCouncilVoldev[starCouncilVoldevI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/2/2e/Star.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/2/2a/Group_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/6/64/Developer_Icon.png" width="16" height="16"/>');        }); } /* Star and Voldev — wikiastars + voldev */ starVoldev = [ "/wiki/User:Cade_Calrayn", ]; for (var starVoldevI = 0; starVoldevI < starVoldev.length; starVoldevI++) { $('a[href="' + starVoldev[starVoldevI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/2/2e/Star.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/6/64/Developer_Icon.png" width="16" height="16"/>');        }); }

/* Star and Vanguard — wikiastars + vanguard */ starVanguard = [ "/wiki/User:Cyanide3", "/wiki/User:Technobliterator", "/wiki/User:UltimateSupreme", ]; for (var starVanguardI = 0; starVanguardI < starVanguard.length; starVanguardI++) { $('a[href="' + starVanguard[starVanguardI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/2/2e/Star.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/c/ce/Vanguard_Icon.png" width="16" height="16"/>');        }); } /* Helper and Utilities — helper + util */ helperUtil = [ "/wiki/User:Baakamono", "/wiki/User:Hulothe", "/wiki/User:Leviathan_89", "/wiki/User:Miri-Nae", "/wiki/User:Nanaki", "/wiki/User:Plizirim", "/wiki/User:SvetlanaPtrv", "/wiki/User:Vuh", ]; for (var helperUtilI = 0; helperUtilI < helperUtil.length; helperUtilI++) { $('a[href="' + helperUtil[helperUtilI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/7/79/FAQ_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/2/25/Utilities_Icon.png" width="16" height="16"/>');        }); } /* Helper, Utilities and Council — helper + util + council */ helperUtilCouncil = [ "/wiki/User:Flightmare", ]; for (var helperUtilCouncilI = 0; helperUtilCouncilI < helperUtilCouncil.length; helperUtilCouncilI++) { $('a[href="' + helperUtilCouncil[helperUtilCouncilI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/7/79/FAQ_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/2/25/Utilities_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/2/2a/Group_Icon.png" width="16" height="16"/>');        }); } /* Helper, Utilities and Voldev — helper + util + voldev */ helperUtilVoldev = [ "/wiki/User:Wedkarski", "/wiki/User:Wildream", ]; for (var helperUtilVoldevI = 0; helperUtilVoldevI < helperUtilVoldev.length; helperUtilVoldevI++) { $('a[href="' + helperUtilVoldev[helperUtilVoldevI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/7/79/FAQ_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/2/25/Utilities_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/6/64/Developer_Icon.png" width="16" height="16"/>');        }); } /* Helper and Council — helper + council */ helperCouncil = [ "/wiki/User:AmonFatalis", ]; for (var helperCouncilI = 0; helperCouncilI < helperCouncil.length; helperCouncilI++) { $('a[href="' + helperCouncil[helperCouncilI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/7/79/FAQ_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/2/2a/Group_Icon.png" width="16" height="16"/>');        }); }

/* Helper, Council and Vanguard — helper + council + vanguard */ helperCouncilVanguard = [ "/wiki/User:Kopcap94", ]; for (var helperCouncilVanguardI = 0; helperCouncilVanguardI < helperCouncilVanguard.length; helperCouncilVanguardI++) { $('a[href="' + helperCouncilVanguard[helperCouncilVanguardI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/7/79/FAQ_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/2/2a/Group_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/c/ce/Vanguard_Icon.png" width="16" height="16"/>');        }); }

/* Helper, Utilities and Wiki Factory — helper + util + wiki-factory */ helperUtilFactory = [ "/wiki/User:Wyz", ]; for (var helperUtilFactoryI = 0; helperUtilFactoryI < helperUtilFactory.length; helperUtilFactoryI++) { $('a[href="' + helperUtilFactory[helperUtilFactoryI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/7/79/FAQ_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/2/25/Utilities_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/a/ae/Config_Icon.png" width="16" height="16"/>');        }); }

/* Helper, Utilities, Wiki Factory and Vanguard — helper + util + wiki-factory + vanguard */ helperUtilFactoryVanguard = [ "/wiki/User:Yatalu", ]; for (var helperUtilFactoryVanguardI = 0; helperUtilFactoryVanguardI < helperUtilFactoryVanguard.length; helperUtilFactoryVanguardI++) { $('a[href="' + helperUtilFactoryVanguard[helperUtilFactoryVanguardI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/7/79/FAQ_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/2/25/Utilities_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/a/ae/Config_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/c/ce/Vanguard_Icon.png" width="16" height="16"/>');        }); }

/* Utilities and Content Reviewers — util + content-reviewer */ utilContent = [ "/wiki/User:Adamkarminski", "/wiki/User:Kvas_damian", "/wiki/User:Lukasz_Konieczny", "/wiki/User:R-Frank", ]; for (var utilContentI = 0; utilContentI < utilContent.length; utilContentI++) { $('a[href="' + utilContent[utilContentI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/2/25/Utilities_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/8/8e/Content_Icon.png" width="16" height="16"/>');        }); }

/* Utilities, Content Reviewers and Wiki Factory — util + content-reviewer + wiki-factory */ utilContentFactory = [ "/wiki/User:TOR", "/wiki/User:Rappy_4187", ]; for (var utilContentFactoryI = 0; utilContentFactoryI < utilContentFactory.length; utilContentFactoryI++) { $('a[href="' + utilContentFactory[utilContentFactoryI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/2/25/Utilities_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/8/8e/Content_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/a/ae/Config_Icon.png" width="16" height="16"/>');        }); }

/* Utilities and Image Reviewers — util + reviewer */ utilImage = [ "/wiki/User:Ducksoup", ]; for (var utilImageI = 0; utilImageI < utilImage.length; utilImageI++) { $('a[href="' + utilImage[utilImageI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/2/25/Utilities_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/a/ac/Image_Icon.png" width="16" height="16"/>');        }); }

/* Utilities and Wiki Factory — util + wiki-factory */ utilFactory = [ "/wiki/User:Alwaysmore2hear", "/wiki/User:Ducksoup", "/wiki/User:Quitodes", "/wiki/User:Richard7777", ]; for (var utilFactoryI = 0; utilFactoryI < utilFactory.length; utilFactoryI++) { $('a[href="' + utilFactory[utilFactoryI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/2/25/Utilities_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/a/ae/Config_Icon.png" width="16" height="16"/>');        }); }

/* Utilities, Wiki Factory and Authenticated — util + wiki-factory + authenticated */ utilFactoryAuthenticated = [ "/wiki/User:Tomasz.napieralski", ]; for (var utilFactoryAuthenticatedI = 0; utilFactoryAuthenticatedI < utilFactoryAuthenticated.length; utilFactoryAuthenticatedI++) { $('a[href="' + utilFactoryAuthenticated[utilFactoryAuthenticatedI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/2/25/Utilities_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/a/ae/Config_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/a/ae/Authenticated_Icon.png" width="16" height="16"/>');        }); }

/* Utilities, Wiki Factory and Wikia Translator — util + wiki-factory + translator */ utilFactoryTranslator = [ "/wiki/User:Garthwebb", ]; for (var utilFactoryTranslatorI = 0; utilFactoryTranslatorI < utilFactoryTranslator.length; utilFactoryTranslatorI++) { $('a[href="' + utilFactoryTranslator[utilFactoryTranslatorI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/2/25/Utilities_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/a/ae/Config_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/e/e8/Translate_Icon.png" width="16" height="16"/>');        }); }

/* Council and Vanguard — council + vanguard */ councilVanguard = [ "/wiki/User:Dragon_Rainbow", "/wiki/User:Paynekiller92", "/wiki/User:Tono555", "/wiki/User:Xemnas_Axel", ]; for (var councilVanguardI = 0; councilVanguardI < councilVanguard.length; councilVanguardI++) { $('a[href="' + councilVanguard[councilVanguardI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/2/2a/Group_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/c/ce/Vanguard_Icon.png" width="16" height="16"/>');        }); }

/* Council and Voldev — council + voldev */ councilVoldev = [ "/wiki/User:Cqm", ]; for (var councilVoldevI = 0; councilVoldevI < councilVoldev.length; councilVoldevI++) { $('a[href="' + councilVoldev[councilVoldevI] + '"]').each(function {               $(this).append('<img src="http://images.wikia.com/spydar007-test/images/2/2a/Group_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/6/64/Developer_Icon.png" width="16" height="16"/>');        }); }

//** 1 - Configuration **// /* AdvancedOasisUI */ window.AdvancedOasisUI = { accountNavFollowedPages: true, accountNavWatchlist: true, categoryRedlink: true, RCHeader: true, lightbox: true, activity2RC: true, };

/* AjaxRC */ window.ajaxRefresh = 10000; window.ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions"]; window.AjaxRCRefreshText = 'Auto Refresh'; window.AjaxRCRefreshHoverText = 'Automatically refreshes the page every 10 seconds';

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

/* FileUsageAuto-update */ LIRoptions = { bottomMessage: '', editSummary: 'Updating file links', singleButtonText: 'Rename and update', queueButtonText: 'Add to queue', delay: 100 };

/* LastEdited */ window.lastEdited = { avatar: false, size: true, diff: true, comment: true, time: 'timestamp', lang: 'en', namespaces: { include: [], exclude: [] },   pages: [] };

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

/* QuickModTools */ QuickModTools = { quickreasons: [ "Swearing", "Spamming", "Inappropriate talk", ], }

/* UserTags */ window.UserTagsJS = { modules: {}, tags: { founder: { u:'Founder', order: 0 }, bureaucrat: { u:'Bureaucrat', link:'Project:Bureaucrats', order: 1 }, sysop: { u:'Administrator', link:'Project:Administrators', order: 2 }, rollback: { u:'Rollback', link:'Project:Rollbacks', order: 3 }, threadmoderator: { u:'Moderator', link:'Project:Moderators', order: 4 }, chatmoderator: { u:'Chat Moderator', link:'Project:Chat Moderators', order: 5 }, bot: { u:'Bot', link:'Project:Bots', order: 6 }, 'bot-global': { u:'Global Bot', order: 7 }, checkuser: { u:'Check User', link:'Help:CheckUser', order: 8 }, staff: { u:'Wikia Staff', link:'Help:Staff', order: 9 }, vstf: { u:'VSTF', link:'Help:SpamTaskForce', order: 10 }, wikiastars: { u:'Wikia Star', link:'http://www.wikia.com/Stars', order: 11 }, helper: { u:'Wikia Helper', link:'Help:Helper Group', order: 12 }, util: { u:'Wikia Utilities', order: 13 }, council: { u:'Counciler', link:'Help:Community Council', order: 14 }, voldev: { u:'Volunteer Developer', link:'http://dev.wikia.com/wiki/Volunteer_Developers', order: 15 }, authenticated: { u:'Authenticated', link:'http://community.wikia.com/wiki/Help:User_access_levels#Authenticated', order: 16 }, adminmentor: { u:'Admin Mentor', link:'http://community.wikia.com/wiki/Admin_Support%3AMain_Page', order: 17 }, 'checkuser-global': { u:'Global Check User', link:'Help:CheckUser', order: 18 }, } }; UserTagsJS.modules.mwGroups = ['bureaucrat', 'sysop', 'rollback', 'threadmoderator', 'chatmoderator', 'bot', 'bot-global', 'checkuser', 'staff', 'vstf', 'wikiastars', 'helper', 'util', 'council', 'voldev', 'authenticated', 'adminmentor', 'checkuser-global']; UserTagsJS.modules.inactive = 30;

UserTagsJS.modules.nonuser = true;

UserTagsJS.modules.autoconfirmed = true; UserTagsJS.modules.metafilter = { 'inactive': ['nonuser'], };

UserTagsJS.modules.isblocked = true;

//** 2 - Import **// importArticles({   type: 'script',    articles: [        'w:c:cod:User:Madnessfan34537/multikick.js',        'w:c:community:User:Joeytje50/ChatPMs.js', //        'w:c:community:User:Monchoman45/ChatHacks.js', //        'w:c:community:User:Spydar007/icons.js',        'w:c:dev:MediaWiki:AdvancedOasisUI/code.js',        'w:c:dev:MediaWiki:AjaxBatchDelete/code.2.js',        'w:c:dev:MediaWiki:AjaxEmoticons/code.js',        'w:c:dev:MediaWiki:AjaxPatrol/code.js',        'w:c:dev:MediaWiki:AjaxRC/code.js',        'w:c:dev:MediaWiki:AjaxRedirect/code.js',        'w:c:dev:MediaWiki:AjaxUndo/code.js',        'w:c:dev:MediaWiki:AnchoredRollback/code.js',        'w:c:dev:MediaWiki:AutoEditDropdown/code.js',        'w:c:dev:MediaWiki:CapsFirst/code.js',        'w:c:dev:MediaWiki:CategoryRenameAuto-update/code.js',        'w:c:dev:MediaWiki:ChatBlockButton/code.2.js',        'w:c:dev:MediaWiki:ChatInterwikiLinks/code.js', 'w:c:dev:MediaWiki:ChatOptions/code.js', 'w:c:dev:MediaWiki:FindAndReplace/code.js', 'w:c:dev:MediaWiki:FileUsageAuto-update/code.js', 'w:c:dev:MediaWiki:FloatingToc/code.js', 'w:c:dev:MediaWiki:HideRail/code.js', 'w:c:dev:MediaWiki:LastEdited/code.js', 'w:c:dev:MediaWiki:MassCategorization/code.js', 'w:c:dev:MediaWiki:MassRedirect/code.2.js', 'w:c:dev:MediaWiki:MassRename/code.js', 'w:c:dev:MediaWiki:MassRenameRevert/code.js', 'w:c:dev:MediaWiki:MessageBlocker/code.js', 'w:c:dev:MediaWiki:MessageBlock/code.js', 'w:c:dev:MediaWiki:Message/code.js', 'w:c:dev:MediaWiki:PageRenameAuto-update/code.js', 'w:c:dev:MediaWiki:PurgeButton/code.js', //	'w:c:dev:MediaWiki:QuickModTools/loader.js', 'w:c:dev:MediaWiki:RecentChangesMultiple/code.js', 'w:c:dev:MediaWiki:RedirectManagement/code.js', 'w:c:dev:MediaWiki:RelocateEditDiscussionButtons/code.js', 'w:c:dev:MediaWiki:RevealAnonIP/usercode.js', 'w:c:dev:MediaWiki:Thread_Inspection/code.js', 'w:c:dev:MediaWiki:UserTags/code.js', 'w:c:dev:MediaWiki:View Source/code.js', 'w:c:dev:MediaWiki:WallGreetingButton/code.js', 'w:c:dev:MediaWiki:WHAM/code.2.js', 'w:c:dev:MediaWiki:WikiaNavBarHider/code.js', 'u:dev:MediaWiki:Wikimarks/code.js', 'w:c:spydar007:MediaWiki:AdditionalUserTools.js', ] }); importScriptURI('//en.wikipedia.org/w/index.php?title=User:Joeytje50/AWB.js/load.js&action=raw&ctype=text/javascript');

//** 3 - Other Stuff **// /* adding link to contribs for anons article/blog comments */ $('.details span[title]').each(function{	var t = $(this),	title = $(this).attr("title");	t.html('Unregistered user (IP: <a href="/wiki/Special:Contributions/' + title + '" target="_blank" rel="nofollow">' + title + ')</a>'); });

/* making source mode default */ $(function ($) {	"use strict";	$('.wikia-menu-button a, .editsection a').each(function { var href = this.href; if (href.indexOf('action=edit') !== -1 && href.indexOf('useeditor=source') === -1) { this.href += "&useeditor=source"; }	}); });

/* make Visual Editor links load the regular editor instead */ if ($.getUrlVar('veaction') == 'edit') location.replace(document.URL.replace('veaction','action'));

/* changing forum links from talk page to user page */ $("#Wall .SpeechBubble.message > .speech-bubble-avatar > a, #Wall .edited-by > a").each(function {	$(this).attr("href", mw.config.get("wgServer") + "/wiki/User:" + $(this) .attr("href") .substr((wgServer +"/wiki/").length + 1 +				$(this)					.attr("href")					.substr((wgServer +"/wiki/").length)					.split(":")[0]					.length		) ); });

/* small windowed chat */ chatWindowConfigs = { url: mw.config.get("wgServer") + "/wiki/Special:Chat", title: "Wiki Chat - " + mw.config.get("wgSiteName"), config: "menubar=no, location=no, resizable=yes, scrollbars=yes, status=yes, width=600, height=600" } function openRequestedPopup { windowObjectReference = window.open(chatWindowConfigs.url, chatWindowConfigs.title, chatWindowConfigs.config); } $(document).ready(function {	$('nav.WikiNav a[data-canonical="chat"], button[onclick="ChatEntryPoint.onClickChatButton(\'/wiki/Special:Chat\')"]').attr("onclick","openRequestedPopup; return false;");	$('nav.WikiNav a[data-canonical="chat"]').removeAttr("href");	mw.util.addCSS('a[data-canonical="chat"] {cursor: hand; cursor: pointer;}'); });

/* removing image popups */ window.wgEnableImageLightboxExt = false; function changeimagelinks { $('#WikiaArticle, .LatestPhotosModule, #article-comments').unbind('click.lightbox');

var a = document.getElementsByTagName('a'); for(var t = 0; t < a.length; ++t) { var a2 = a[t]; var img = a2.getElementsByTagName('img'); if(img[0] !== null) { if (a2.href.indexOf('images.wikia.com') != -1) { var link = wgServer + '/wiki/File:' + a2.href.substring(a2.href.lastIndexOf('/') + 1); a2.setAttribute('href',link); }		}	} } addOnloadHook(changeimagelinks);

/* changing Wiki Activity to Recent Changes */ function WikiActivity2RecentChanges { $('.wikia-button[data-id$="wikiactivity"]').replaceWith('<a data-id="recentchanges" class="wikia-button secondary" accesskey="g" title="Special:RecentChanges" href="/wiki/Special:RecentChanges"><img height="0" width="0" class="sprite activity" src="http://images1.wikia.nocookie.net/common/skins/common/blank.gif">Recent Changes</a>'); } addOnloadHook(WikiActivity2RecentChanges);

/* adding checkbox to Special:ListUsers for poweruser and fb-user */ if (wgCanonicalSpecialPageName == "Listusers") $("fieldset.lu_fieldset tr:last-child").prepend('<td valign="middle" style="padding:0px 2px 0px 1px;"><label for="checkBoxForpoweruser"> <input type="checkbox" name="lu_target" class="lu_target" value="poweruser" id="checkBoxForpoweruser"> Power Users '); if (wgCanonicalSpecialPageName == "Listusers") $("fieldset.lu_fieldset tr:last-child").prepend('<td valign="middle" style="padding:0px 2px 0px 1px;"><label for="checkBoxForfbuser"> <input type="checkbox" name="lu_target" class="lu_target" value="fb-user" id="checkBoxForfbuser"> Facebook Users ');