User:MechaBolt/global.js

function SetAjaxRollback { $('.mw-rollback-link').click(function(e) {		e.preventDefault;		var $rblink = $(this);		var href = this.getElementsByTagName('a')[0].href;		this.innerHTML = ' ';		$.ajax({ url: href, success: function { $rblink.text(function (i, val) {return val + ' [success]';}); loadPageData; },			error: function { $rblink.text(function (i, val) {return val + ' [failed]';}); loadPageData; }		});	}); } addOnloadHook(SetAjaxRollback); window.AdvancedOasisUI = { accountNavFollowedPages: true, accountNavWatchlist: true, categoryRedlink: true, RCHeader: true, lightbox: true, activity2RC: true, }; window.ajaxRefresh = 30000; window.ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions"]; window.AjaxRCRefreshText = 'Auto Refresh'; window.AjaxRCRefreshHoverText = 'Automatically refreshes the page 30 seconds'; window.ajaxCallAgain = window.ajaxCallAgain || []; window.ajaxCallAgain.push(SetAjaxRollback); window.AutoEditDropdownConfig = { expandedAreaContribute: true, expandedAreaEdit: true }; LIRoptions = { bottomMessage: '', editSummary: 'Updating file links', singleButtonText: 'Rename and update', queueButtonText: 'Add to queue', delay: 100 }; window.lastEdited = { avatar: false, size: true, diff: true, comment: true, time: 'timestamp', lang: 'en', namespaces: { include: [], exclude: [] },   pages: [] }; massRenameDelay = 1000; massRenameSummary = ''; QuickModTools = { quickreasons: [ "Swearing", "Spamming", "Inappropriate talk", ], } 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 }, 'content-moderator': { u:'Content Moderator', link:'Project:Content Moderators', order: 4 }, threadmoderator: { u:'Discussions Moderator', link:'Project:Discussions Moderators', order: 5 }, chatmoderator: { u:'Chat Moderator', link:'Project:Chat Moderators', order: 6 }, bot: { u:'Bot', link:'Project:Bots', order: 7 }, checkuser: { u:'Check User', link:'Help:CheckUser', order: 8 }, 'bot-global': { u:'Global Bot', order: 9 }, staff: { u:'Wikia Staff', link:'Help:Staff', order: 10 }, vstf: { u:'VSTF', link:'Help:SpamTaskForce', 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 }, vanguard: { u:'Vanguard', link:'http://community.wikia.com/wiki/Community_Central:Vanguard', order: 16 }, authenticated: { u:'Authenticated', link:'http://community.wikia.com/wiki/Help:User_access_levels#Authenticated', order: 17 }, } }; UserTagsJS.modules.mwGroups = ['bureaucrat', 'sysop', 'rollback', 'content-moderator', 'threadmoderator', 'chatmoderator', 'bot', 'bot-global', 'checkuser', 'staff', 'vstf', 'helper', 'util', 'council', 'voldev', 'vanguard', 'authenticated']; UserTagsJS.modules.inactive = 30; UserTagsJS.modules.nonuser = true; UserTagsJS.modules.autoconfirmed = true; UserTagsJS.modules.metafilter = { 'inactive': ['nonuser'], }; UserTagsJS.modules.isblocked = true; importArticles({   type: 'script',    articles: [        '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:NullEditButton/code.js', 'w:c:dev:MediaWiki:PageRenameAuto-update/code.js', 'w:c:dev:MediaWiki:PurgeButton/code.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', ] });

$('.details span[title]').each(function{	var t = $(this),	title = $(this).attr("title");	t.html('Unregistered user (IP: ' + title + ')'); }); $(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"; }	}); }); if ($.getUrlVar('veaction') == 'edit') location.replace(document.URL.replace('veaction','action')); $("#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		) ); });