User:Spydar007/global.js

//** Icons - will be moved back to User:Spydar007/icons.js once Wikia enable 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 15, 2016 10:25 (UTC) */ /* Global Bot, Wikia Utilities and Content Reviewers — bot-global + util + content-reviewer */ globalbotUtilContentreviewer = [ "User:Wikia", ]; for (var globalbotUtilContentreviewerI = 0; globalbotUtilContentreviewerI < globalbotUtilContentreviewer.length; globalbotUtilContentreviewerI++) { $('a[href$="' + globalbotUtilContentreviewer[globalbotUtilContentreviewerI] + '"]').each(function {               $(this).append('');        }); }

/* Global Bot and Wikia Helpers — bot-global + helper */ globalbotHelper = [ "User:Wildtech", ]; for (var globalbotHelperI = 0; globalbotHelperI < globalbotHelper.length; globalbotHelperI++) { $('a[href$="' + globalbotHelper[globalbotHelperI] + '"]').each(function {               $(this).append('');        }); }

/* Global Bot and Authenticated — bot-global + authenticated */ globalbotAuthenticated = [ "User:AndLuk", ]; for (var globalbotAuthenticatedI = 0; globalbotAuthenticatedI < globalbotAuthenticated.length; globalbotAuthenticatedI++) { $('a[href$="' + globalbotAuthenticated[globalbotAuthenticatedI] + '"]').each(function {               $(this).append('');        }); }

/* Wikia Utilities and Wiki Factory - util + wikifactory */ utilFactory = [ "User:Adam_Carey", "User:Aga_Zarek", "User:Agse", "User:Alwaysmore2hear", "User:Amahajan", "User:Andrzej.swedrzynski", "User:Andrzej_%C5%81ukaszewski", /* for some browsers */ "User:Andrzej_Łukaszewski", "User:Asnow89", "User:Avatar", "User:BertH", "User:Bkowalczyk", "User:Bognix", "User:Bola", "User:Brandon_Rhea", "User:Bve", "User:Cal-Boy", "User:Charicocco", "User:Cnoteboat", "User:Cooksey.michael", "User:CuBaN_VeRcEttI", "User:Dmytro_Rets", "User:Ducksoup", "User:ElBosso", "User:Ffaarr", "User:FiliusLunae", "User:FishTank", "User:Foppes", "User:ForestFairy", "User:FriegOfNature", "User:Froncek", "User:Gcheung28", "User:Glass_butterfly", "User:Hypsoline", "User:Idradm", "User:Ieatrice", "User:Imadwikia", "User:Jakubolek", "User:JAlbor", "User:Jenburton", "User:Kfax", "User:Knakveey", "User:Luchofigo85", "User:Lukasz_Jedrzejczak", "User:Macbre", "User:Macherie_ana", "User:Matt_Hadick", "User:MELFAL", "User:Merrystar", "User:Mighty_No._9", "User:Mira_Laime", "User:MrBlonde267", "User:Mroszka", "User:Mta%C3%84", /* for some browsers */ "User:MtaÄ", "User:Nblonkenfeld", "User:NeptuNooo", "User:Nikodamn", "User:OwenDavis", "User:Pgroland", "User:Pinkachu", "User:Piotr.gackowski", "User:Piotr_Gabryjeluk", "User:Ppiotr", "User:Pseudobread", "User:Quitodes", "User:Rafalkalinski1", "User:Rafleszczynski", "User:Richard7777", "User:Ryba777", "User:Saipetch", "User:Sannse", "User:Sebastian_Marzjan", "User:Semanticdrifter", "User:SEOkitten", "User:Shareif", "User:Spinelli313", "User:Spoonyfreak", "User:Springteufel", "User:TheBlueRogue", "User:Togo555", "User:TOR", "User:TranStanley", "User:Vanityklaw", "User:Vlazovskiy", "User:VolleyChick14", "User:Vpinas", "User:W.bulaszenko", "User:Witnessme", "User:Wladekb", "User:XD1", "User:Yurixholic", ]; for (var utilFactoryI = 0; utilFactoryI < utilFactory.length; utilFactoryI++) { $('a[href$="' + utilFactory[utilFactoryI] + '"]').each(function {               $(this).append('');        }); }

/* Wikia Utilities, Wiki Factory and Wikia Helpers - util + wikifactory + helper */ utilFactoryHelper = [ "User:Baakamono", "User:Hulothe", "User:Leviathan_89", "User:Miri-Nae", "User:Nanaki", "User:Plizirim", "User:Vuh", "User:Wedkarski", "User:Wyz", ]; for (var utilFactoryHelperI = 0; utilFactoryHelperI < utilFactoryHelper.length; utilFactoryHelperI++) { $('a[href$="' + utilFactoryHelper[utilFactoryHelperI] + '"]').each(function {               $(this).append('');        }); }

/* Wikia Utilities, Wiki Factory, Wikia Helpers and Wikia Stars - util + wikifactory + helper + wikiastars */ utilFactoryHelperStar = [ "User:Kuzura", "User:Zeist_Antilles", ]; for (var utilFactoryHelperStarI = 0; utilFactoryHelperStarI < utilFactoryHelperStar.length; utilFactoryHelperStarI++) { $('a[href$="' + utilFactoryHelperStar[utilFactoryHelperStarI] + '"]').each(function {               $(this).append('');        }); }

/* Wikia Utilities, Wiki Factory, Wikia Helpers and Community Council - util + wikifactory + helper + council */ utilFactoryHelperCouncil = [ "User:Flightmare", ]; for (var utilFactoryHelperCouncilI = 0; utilFactoryHelperCouncilI < utilFactoryHelperCouncil.length; utilFactoryHelperCouncilI++) { $('a[href$="' + utilFactoryHelperCouncil[utilFactoryHelperCouncilI] + '"]').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/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"/>');        }); }

/* Wikia Utilities, Wiki Factory, Wikia Helpers and Community Council - util + wikifactory + helper + council */ utilFactoryHelperCouncil = [ "User:Flightmare", ]; for (var utilFactoryHelperCouncilI = 0; utilFactoryHelperCouncilI < utilFactoryHelperCouncil.length; utilFactoryHelperCouncilI++) { $('a[href$="' + utilFactoryHelperCouncil[utilFactoryHelperCouncilI] + '"]').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/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"/>');        }); }

/* Wikia Utilities, Wiki Factory, Wikia Helpers and Volunteer Developers - util + wikifactory + helper + voldev */ utilFactoryHelperVoldev = [ "User:Wildream", ]; for (var utilFactoryHelperVoldevI = 0; utilFactoryHelperVoldevI < utilFactoryHelperVoldev.length; utilFactoryHelperVoldevI++) { $('a[href$="' + utilFactoryHelperVoldev[utilFactoryHelperVoldevI] + '"]').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/7/79/FAQ_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/6/64/Developer_Icon.png" width="16" height="16"/>');        }); }

/* Wikia Utilities, Wiki Factory, Wikia Helpers and Vanguard - util + wikifactory + helper + vanguard */ utilFactoryHelperVanguard = [ "User:Yatalu", ]; for (var utilFactoryHelperVanguardI = 0; utilFactoryHelperVanguardI < utilFactoryHelperVanguard.length; utilFactoryHelperVanguardI++) { $('a[href$="' + utilFactoryHelperVanguard[utilFactoryHelperVanguardI] + '"]').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/7/79/FAQ_Icon.png" width="16" height="16"/><img src="http://images.wikia.com/spydar007-test/images/c/ce/Vanguard_Icon.png" width="16" height="16"/>');        }); }

/* Wikia Utilities, Wiki Factory, Wikia Stars, Volunteer Developers and Image Reviewer - util + wikifactory + wikiastars + voldev + reviewer */ utilFactoryStarsVoldevReviewer = [ "User:JCel", ]; for (var utilFactoryStarsVoldevReviewerI = 0; utilFactoryStarsVoldevReviewerI < utilFactoryStarsVoldevReviewer.length; utilFactoryStarsVoldevReviewerI++) { $('a[href$="' + utilFactoryStarsVoldevReviewer[utilFactoryStarsVoldevReviewerI] + '"]').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/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"/><img src="http://images.wikia.com/spydar007-test/images/a/ac/Image_Icon.png" width="16" height="16"/>');        }); }

/* Wikia Utilities, Wiki Factory and Authenticated - util + wikifactory + authenticated */ utilFactoryAuthenticated = [ "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/6/6e/Authenticated_Icon.png" width="16" height="16"/>');        }); }

/* Wikia Utilities, Wiki Factory and Content Reviewer - util + wikifactory + content-reviewer */ utilFactoryContentreviewer = [ "User:AdamKarminski", "User:CzechOut", "User:DaNASCAT", "User:Grunny", "User:JoePlay", "User:Kirkburn", "User:Kvas_damian", "User:Lukasz_Konieczny", "User:MarkvA", "User:Ohmyn0", "User:R-Frank", "User:Rappy_4187", "User:Raylan13", ]; for (var utilFactoryContentreviewerI = 0; utilFactoryContentreviewerI < utilFactoryContentreviewer.length; utilFactoryContentreviewerI++) { $('a[href$="' + utilFactoryContentreviewer[utilFactoryContentreviewerI] + '"]').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/8/8e/Content_Icon.png" width="16" height="16"/>');        }); }

/* Wikia Utilities, Wiki Factory and Wikia Translators - util + wikifactory + translator */ utilFactoryTranslator = [ "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"/>');        }); }

/* Wikia Helpers and Wikia Stars - helper + wikiastars */ helperStar = [ "User:Espartannoble6", ]; for (var helperStarI = 0; helperStarI < helperStar.length; helperStarI++) { $('a[href$="' + helperStar[helperStarI] + '"]').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/2e/Star.png" width="16" height="16"/>');        }); }

/* Wikia Helpers and Comunity Council - helper + council */ helperCouncil = [ "User:AmonFatalis", "User:BlackQuimera08", ]; 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"/>');        }); }

/* Wikia Helpers, Community Council and Vanguard - helper + council + vanguard */ helperCouncilVanguard = [ "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"/>');        }); }

/* Wikia Stars and Community Council - wikiastars + council */ starCouncil = [ "User:Agent_c", "User:Babar_Suhail", "User:BachLynn23", "User:Cheesedude", "User:ClericofMadness", "User:C%C3%B6rey", /* for some browsers */ "User:Cörey", "User:Kitsufox", "User:Peteparker", "User:ProfessorTofty", "User:QueenBuffy", "User:SnowedLightning", "User:Sulfur", "User:T3CHNOCIDE", "User:The_Milkman", "User:TombRaiser", "User:Trak_Nar", "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/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"/>');        }); }

/* Wikia Stars, Community Council and Volunteer Developers - wikiastars + council + voldev */ starCouncilVoldev = [ "User:Sactage", "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"/>');        }); }

/* Wikia Stars, Community Council and Vanguard - wikiastars + council + vanguard */ starCouncilVanguard = [ "User:Rodri_cyberdog", "User:TwoTailedFox", ]; for (var starCouncilVanguardI = 0; starCouncilVanguardI < starCouncilVanguard.length; starCouncilVanguardI++) { $('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/c/ce/Vanguard_Icon.png" width="16" height="16"/>');        }); }

/* Wikia Stars and Volunteer Developer - wikiastars + voldev */ starVoldev = [ "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"/>');        }); }

/* Wikia Stars and Vanguard - wikiastars + vanguard */ starVanguard = [ "User:Cyanide3", "User:Technobliterator", "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"/>');        }); }

/* Community Council and Volunteer Developers - council + voldev */ councilVoldev = [ "User:Cqm", "User:Monchoman45", ]; 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"/>');        }); }

/* Community Council and Vanguard - council + vanguard */ councilVanguard = [ "User:Dragon_Rainbow", "User:Paynekiller92", "User:Tono555", "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"/>');        }); }

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