User:.krowl25/global.js

/* AjaxRC */ window.ajaxSpecialPages = ["Recentchanges", "WikiActivity", "Watchlist", "Log", "Contributions"]; window.AjaxRCRefreshText = 'Atualização automática'; window.AjaxRCRefreshHoverText = 'Atualiza a página automaticamente';

/* DiscussionsRailModule */ window.discussionsModuleConfig = { mostrecent: true };

/* LastEdited */ window.lastEdited = { avatar: false, namespaces: { include: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 110, 111, 500, 828, 829, 1202] } };

/* PageCreator */ window.pageCreatorAvatar = false; window.pageCreatorTimestamp = true; window.pageCreatorNamespaces = [0, 4, 6, 8, 10, 12, 14, 828];

/* QuickCreateMessageWallGreeting */ WallGreetingTemplates = { 'en': '', 'pt': '', 'pt-br': '' }; WallGreetingTemplates = WallGreetingTemplates[mw.config.get("wgContentLanguage")] || WallGreetingTemplates.en; qtMessageWallGreetingTemplate = WallGreetingTemplates; qtEnableMessageWallGreetingOverwrite = true;

/* QuickCreateUserPage */ UserPageTemplates = { 'en': '', 'pt': '', 'pt-br': '' }; UserPageTemplates = UserPageTemplates[mw.config.get("wgContentLanguage")] || UserPageTemplates.en; qtUserPageTemplate = UserPageTemplates; qtEnableUserPageOverwrite = true;

/* RailWAM */ window.railWAM = { showLogAlert: false };

/* SeeMoreActivityButton */ window.SeeMoreActivityButtonRC = true;

/* WHAM! */ WHAMDelay = 1000;

/* Standard Edit Summary */ window.dev = window.dev || {}; window.dev.editSummaries = { select: [ '(clique para navegar)', 'Refatoração', [ 'Cleanup', 'Corrigindo gramática/ortografia', 'Formatando', 'Arrumando o HTML', 'Wikificando', 'Corrigindo predefinição', 'Removendo texto duplicado', 'Corrigindo links', 'Removendo links NewWindowLink', 'Capitalização apropriada da marca, substituindo: Fandom → FANDOM', 'Rebranding, substituindo: Wikia → FANDOM' ],       'Conteúdo', [ 'Atualizando', 'Atualizando de acordo com a versão em inglês', 'Expandindo', 'Revisando' ],       'Revertendo', [ 'Removendo spam', 'Revertendo vandalismo', 'Removendo fanon' ],       'i18n', [ // I probably will not use most of these '+de', '+en', '+es', '+fi', '+fr', '+it', '+ja', '+ko', '+nl', '+pl', '+pt', '+pt-br', '+pt, pt-br', '+ru', '+vi', '+zh', 'Adicionando links interlíngua' ]   ] };

/* Imports */ importArticles({   type: 'script',    articles: [        'u:dev:AdminDropdown.js',        'u:dev:AjaxPatrol/code.js',        'u:dev:AjaxRC/code.js',        'u:dev:AllPagesHideRedirect/code.js',        'u:dev:AnchoredRollback/code.js',        'u:dev:BlogLink/code.js',        'u:dev:CategoryRenameAuto-update/code.js',        'u:dev:CodeQuickLinks/code.js',        'u:dev:ConsistentModules/code.js',        'u:dev:DiscussionsRailModule/code.js',        'u:dev:EditBio/code.js',        'u:dev:FindAndReplace/code.js',        'u:dev:GlobalEditcount/code.js',        'u:dev:ImportJSPage/code.js',        'u:dev:LastEdited/code.js',        'u:dev:MarkBlocked.js',        'u:dev:PageCreator/code2.js',        'u:dev:QuickAccessToGlobalPages/code.js',        'u:dev:QuickCreateMessageWallGreeting/code.js',        'u:dev:QuickCreateUserPage/code.js',        'u:dev:RailWAM/code.js',        'u:dev:RedirectReplace.js', 'u:dev:ReferencePopups/code.js', 'u:dev:RevealAnonIP/usercode.js', 'u:dev:SeeMoreActivityButton/code.js', 'u:dev:SignatureCheck/code.js', 'u:dev:Standard_Edit_Summary/code.js', 'u:dev:StickySummary.js', 'u:dev:UTCClock/code.js', 'u:dev:ViewRemovedAlways/code.js', 'u:dev:View_Source/code.js', 'u:dev:WallGreetingButton/code.js', 'u:dev:WHAM/code.2.js', 'u:dev:WorkingMoreUsersCount.js', 'u:kocka:User:KockaAdmiralac/UnhideUserWikis.javascript', 'u:kocka:User:KockaAdmiralac/UserRegistrationDate.javascript' ] });

/* Global navigation links */ $(function {   if(mw.config.get("wgUserLanguage") == "pt-br") { // Check if the language is set as PT-BR        $('.wds-global-navigation .wds-global-navigation__link').replaceWith( '' + '' + ' Wikis ' + ' ' + ' ' +               '' + '' + '' + 'Explorar Wikis' + '' + '' + 'Central da Comunidade' + '' + '' + 'Central de Operações Tríade</a>' + '</li>' + '' + '<a href="http://dev.wikia.com/wiki/" class="wds-global-navigation__dropdown-link" data-tracking-label="link.dev">Open Source Library</a>' + '</li>' + '' + '<a href="http://pt-br.ultragustavo25.wikia.com/wiki/RecentChangesMultiple?useskin=oasis" class="wds-global-navigation__dropdown-link" data-tracking-label="link.recentchangesmultiple">RecentChangesMultiple</a>' + '</li>' + '' + '<a href="http://pt-br.ultragustavo25.wikia.com/wiki/" class="wds-global-navigation__dropdown-link" data-tracking-label="link.sandbox">Sandbox</a>' + '</li>' + '</ul>' + ' ' +           ' '        );    } });

/* RC instead of WA under the icon in new nav - by Nanaki */ $(function {   $('.wds-community-header__wiki-buttons a[data-tracking="wiki-activity"]').attr({href: '/wiki/Special:RecentChanges', title: 'Mudanças recentes', 'data-tracking': 'recent-changes'}); });