User:.krowl25/global.js

$('.wds-community-header .wds-community-header__wordmark>a, .wds-community-header .wds-community-header__sitename>a').attr('href', mw.util.getUrl(mw.config.get('wgMainPageTitle').replace(/ /g, '_'))); $('.wds-community-header__local-navigation .wds-dropdown__content>ul.wds-list>li>a[data-tracking="explore-main-page"]').hide;

$('.wds-community-header__wiki-buttons .wds-dropdown__content>ul.wds-list').prepend( $('').append( $('', { href: mw.util.getUrl('Special:Analytics'), text: 'Painel de análise' }) ) );

if ((/pt(-br)?/).test(mw.config.get('wgContentLanguage'))) { PRAoptions = { editSummary: 'Atualizando links de páginas (automático)' } LIRoptions = { editSummary: 'Atualizando links de arquivos (automático)' } }

window.discussionsModuleConfig = { mostrecent: true };

window.fdButtons = [ { summary: 'Serviço de limpeza', label: 'SL' }, { summary: 'Limpeza', label: 'L' }, { summary: 'Vandalismo', label: 'V' }, { summary: 'Spam', label: 'S' }, { summary: 'Página em branco', label: 'B' } ];

InactiveUsers = { text: 'Inativo', months: 2 };

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] } };

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

window.qtUserPageTemplate = ''; //window.qtEnableUserPageOverwrite = true;

/* UserTags window.UserTagsJS = { modules: { autoconfirmed: true, inactive: 60, nonuser: true, mwGroups: ['bot', 'bot-global', 'checkuser', 'util', 'voldev'], metafilter: { 'bot': ['bot-global'] } },  tags: { 'authenticated': {link:'http://community.wikia.com/wiki/Special:ListUsers/authenticated'}, 'bannedfromchat': {f:'Banida do Chat', link:'Special:ChatBanList'}, 'blocked': {f:'Bloqueada', link:'Special:BlockList'}, 'bot': {u:'Bot', link:'Special:ListUsers/bot'}, 'bot-global': {u:'Bot Global', link:'http://community.wikia.com/wiki/Special:ListUsers/bot-global'}, 'bureaucrat': {link:'Special:ListUsers/bureaucrat'}, 'chatmoderator': {f:'Moderadora do Chat', link:'Special:ListUsers/chatmoderator'}, 'checkuser': {link:'Special:ListUsers/checkuser'}, 'content-moderator': {f:'Moderadora de Conteúdo', link:'Special:ListUsers/content-moderator'}, 'council': {link:'http://community.wikia.com/wiki/Special:ListUsers/council'}, 'founder': {f:'Fundadora', link:'Special:ListUsers/sysop'}, 'global-discussions-moderator': {f:'Moderadora global de discussões', link:'http://community.wikia.com/wiki/Special:ListUsers/global-discussions-moderator'}, 'helper': {link:'http://community.wikia.com/wiki/Community_Central:International'}, 'inactive': {u:'Inativo', f:'Inativa'}, 'nonuser': {u:'Nunca Editou'}, 'notautoconfirmed': {u:'Não Confirmado', f:'Não Confirmada'}, 'patroller': {link:'Special:ListUsers/patroller'}, 'rollback': {link:'Special:ListUsers/rollback'}, 'staff': {link:'http://community.wikia.com/wiki/Community_Central:Staff'}, 'sysop': {f:'Administradora', link:'Special:ListUsers/sysop'}, 'threadmoderator': {f:'Moderadora de Discussões',link:'Special:ListUsers/threadmoderator'}, 'util': {link:'http://community.wikia.com/wiki/Special:ListUsers/util'}, 'vanguard': {link:'http://community.wikia.com/wiki/Help:Vanguard'}, 'voldev': {link:'http://community.wikia.com/wiki/Special:ListUsers/voldev'}, 'vstf': {link:'http://community.wikia.com/wiki/Help:SpamTaskForce'} } }; */

/* 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', '+i18n' ] ] }; */

importArticles({ type: 'script',  articles: [    'u:dev:MediaWiki:AbuseLogRC.js',  //'u:dev:MediaWiki:AjaxBatchDelete/code.js',    'u:dev:MediaWiki:AjaxDelete/code.js',    'u:dev:MediaWiki:AjaxUndo/code.js',    'u:dev:MediaWiki:AllPagesHideRedirect/code.js',    'u:dev:MediaWiki:AnchoredRollback/code.js',    'u:dev:MediaWiki:BlockLookup.js',  //'u:dev:MediaWiki:CategoryRenameAuto-update/code.js',    'u:dev:MediaWiki:CodeLinksDropdown.js',    'u:dev:MediaWiki:CodeQuickLinks/code.js',    'u:dev:MediaWiki:CopyTitle.js',    'u:dev:MediaWiki:ContribsLink/code.js',    'u:dev:MediaWiki:DisableCode/code.js',  //'u:dev:MediaWiki:DiscussionsRailModule/code.js',  //'u:dev:MediaWiki:EditConflictAlert/code.js',    'u:dev:MediaWiki:FastDelete/code.js',  //'u:dev:MediaWiki:FileUsageAuto-update/code.js',  //'u:dev:MediaWiki:GlobalEditcount/code.js',  //'u:dev:MediaWiki:HoverEditCount/code.js',    'u:dev:MediaWiki:ImageMapEdit.js', //'u:dev:MediaWiki:ImportJSPage/code.js', 'u:dev:MediaWiki:InactiveUsers/code.js', 'u:dev:MediaWiki:LastEdited/code.js', 'u:dev:MediaWiki:MarkBlocked.js', 'u:dev:MediaWiki:MinimalTestModeAlert.js', 'u:dev:MediaWiki:MultipleActivity.js', //'u:dev:MediaWiki:NavButtonsDropdown.js', 'u:dev:MediaWiki:NewImages.js', 'u:dev:MediaWiki:NewPagesUser.js', 'u:dev:MediaWiki:PageCreator/code2.js', //'u:dev:MediaWiki:PageRenameAuto-update/code.js', 'u:dev:MediaWiki:ProtectionIcons.js', 'u:dev:MediaWiki:QuickCreateUserPage/code.js', 'u:dev:MediaWiki:QuickPurge.js', 'u:dev:MediaWiki:RedirectManagement/code.js', 'u:dev:MediaWiki:ReferencePopups/code.js', //'u:dev:MediaWiki:RevealAnonIP/usercode.js', 'u:dev:MediaWiki:SeeMoreActivityButton/code.js', //'u:dev:MediaWiki:ShowUserGroups.js', //'u:dev:MediaWiki:SignatureCheck/code.js', 'u:dev:MediaWiki:SocialActivityModern.js', 'u:dev:MediaWiki:Sofix.js', //'u:dev:MediaWiki:Standard_Edit_Summary/code.js', 'u:dev:MediaWiki:StickySummary.js', 'u:dev:MediaWiki:UserAndIPTools.js', //'u:dev:MediaWiki:UserCheck/code.js', //'u:dev:MediaWiki:UserTags/code.js', 'u:dev:MediaWiki:UTCClock/code.js', //'u:dev:MediaWiki:ViewDeleted/code.js', 'u:dev:MediaWiki:View_Source/code.js', 'u:dev:MediaWiki:WHAM/code.2.js', //'u:dev:MediaWiki:WikiActivity.js', //'u:dev:MediaWiki:Wikimarks/code.js' ] });

/* Moving QuickCreate to a better place setTimeout(function { $('li#quick-cup').prependTo('#my-tools-menu').addClass('overflow');  $('li#quick-cup').insertAfter('#my-tools-menu#quick-cup').addClass('overflow'); }, 2500); */

/* Rearranging some modules setTimeout(function { $('#cql-module').insertAfter('.activity-module');  $('.photo-module').insertAfter('.activity-module');  $('.chat-module').insertAfter('.activity-module');  $('.DiscordIntegratorModule').insertAfter('.activity-module');  $('.DiscordIntegratorModule iframe').attr({height: '388px'}); }, 5000); */

/* Linking the page counter to the Special:AllPages */ $(function { var pageCounterContent = $('.wds-community-header__counter').html;  $('.wds-community-header__counter').replaceWith(''+pageCounterContent+'');  mw.util.addCSS('a.wds-community-header__counter:hover { color: var(--wds-tab-color--hover) }'); });