User:Doork/global.js

window.ajaxRefresh = 100; window.ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions","Special:Images", "Special:WikiActivity" ]; window.AjaxRCRefreshText = 'Refresh'; window.AjaxRCRefreshHoverText = 'Refreshing'; var PrivateMessageAlert = { message: '$1 sent you a message!', notifications: true, alertWhileFocused: true };

// Quick Userpage var qtEnableUserPageOverwrite = true; var qtUserPageTemplate = '';

// Quick Access to EditCount if ($('.tally').length) { var $tally = $('.tally'); $tally.attr('title', 'EditCount'); $tally.click(function { window.location.href = wgServer + '/wiki/Special:EditCount/' + $('h1[itemprop="name"]').text; }); }

/* Scripts */ $(window).load(function {   importArticles({ type: "script", articles: [ 'u:dev:MediaWiki:ViewRemoved/code.js', 'u:dev:MediaWiki:View_Source/code.js', 'u:dev:MediaWiki:WallGreetingButton/code.js', 'u:dev:MediaWiki:PurgeButton/code.js', 'u:dev:MediaWiki:Rollback/code.js', 'u:dev:QuickCreateUserPage/code.js', 'u:dev:MediaWiki:MassCategorization/code.js', 'u:dev:MediaWiki:RevealAnonIP/usercode.js', 'u:dev:MediaWiki:DisplayClock/code.js', 'u:dev:MediaWiki:WHAM/code.2.js', 'u:dev:MediaWiki:ExternalImageLoader/code.js', 'u:dev:MediaWiki:ListFiles/code.js', 'u:dev:MediaWiki:MultipleFileDelete/code.js', 'u:dev:MediaWiki:QuickComments/code.js', 'u:dev:MediaWiki:UnsafeScripts/code.js', 'u:dev:MediaWiki:QuickThreads/code.js', 'u:dev:MediaWiki:AjaxBlock/code.js', 'u:dev:MediaWiki:CleanWantedFiles/code.js', 'u:dev:MediaWiki:AjaxBatchUndelete/code.js', 'u:dev:MediaWiki:AjaxBatchDelete/code.js', 'u:dev:MediaWiki:AjaxThreadUnfollow/code.js', 'u:dev:MediaWiki:MassBlock/code.js', 'u:dev:MediaWiki:MassProtect/code.js', 'u:dev:MediaWiki:MassUserRights/code.js', 'u:dev:MediaWiki:Linksweeper/code.js', 'u:admintools:MediaWiki:Common.js/ajaxRollback.js', 'u:dev:MediaWiki:MassCategorization/code.js', 'u:dev:MediaWiki:QuickDiff/code.js', 'u:botcentral:User:Peridoork/wikia.js', 'u:dev:Mediawiki:AjaxRC/code.js', 'u:botcentral:User:Ditto_Creeper_Bot/spamreport', 'u:dev:QuickToolsv2/code.js' ]   }); });

/* QuickAccessToGlobalPages * Original code by User:JPhil2.0 (can be found in http://community.wikia.com/wiki/User:JPhil2.0/global.js?diff=2017878&oldid=2017872) * Modified and fixed by User:Ultragustavo25 */ if(!window.CustomButtonsLoaded) addOnloadHook(addCustomLinks); var CustomButtonsLoaded = true; var i18n = { en: { js: "Global JS", css: "Global CSS" },   es: { js: 'JS global', css: 'CSS global' },   'pt-br': { js: "JS global", css: "CSS global" },   pt: { js: "JS global", css: "CSS global" } }; i18n = i18n[mw.config.get("wgUserLanguage")] || i18n[mw.config.get("wgContentLanguage")] || i18n.en; function addCustomLinks { $('' + i18n.js + '').insertBefore('.wds-global-navigation__user-menu li:last'); $('' + i18n.css + '').insertBefore('.wds-global-navigation__user-menu li:last'); }