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 }; LinkSweeperDelay = 5000;

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

/* 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:MediaWiki:HoverEditCount/code.js', 'u:dev:MediaWiki:WHAM/code.2.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: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", localcommoncss: "Local Common CSS", localcommonjs: "Local Common JS", localchatcss: "Local Chat CSS", localchatjs: "Local Chat JS" },   es: { js: 'JS global', css: 'CSS global', localcommoncss: "CSS Común local", localcommonjs: "JS Común local", localchatcss: "Local Chat CSS", localchatjs: "Local Chat JS" },   'pt-br': { js: "JS global", css: "CSS global", localcommoncss: "CSS Comum local", localcommonjs: "JS Comum local", localchatcss: "CSS local Chat", localchatjs: "JS local Chat" },   pt: { js: "JS global", css: "CSS global", localcommoncss: "CSS Comum local", localcommonjs: "JS Comum local", localchatcss: "CSS local Chat", localchatjs: "JS local Chat" } }; 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'); $('' + i18n.localcommoncss + '').insertBefore('.wds-global-navigation__user-menu li:last'); $('' + i18n.localcommonjs + '').insertBefore('.wds-global-navigation__user-menu li:last'); $('<a class="wds-global-navigation__dropdown-link" href="/Special:Mypage/chat.css">' + i18n.localchatcss + '</a></li>').insertBefore('.wds-global-navigation__user-menu li:last'); $('<a class="wds-global-navigation__dropdown-link" href="/Special:Mypage/chat.js">' + i18n.localchatjs + '</a></li>').insertBefore('.wds-global-navigation__user-menu li:last'); }