User:.krowl25/global.js

mw.loader.using('mediawiki.api').then(function{	if (mw.config.get('wgWikiaEnvironment') !== "sandbox") return;	if (mw.config.get('skin') === "fandomdesktop") return;	if (mw.config.get('wgCanonicalSpecialPageName') === "ThemeDesigner") return;	new mw.Api.saveOption('skin','fandomdesktop').then(function { location.reload; }); });

if (mw.config.get('skin') === "oasis") {

$('.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__counter').append( $('', { href: mw.util.getUrl('Special:AllPages') })  .append( $('.wds-community-header__counter span') ) ); mw.util.addCSS('\ .wds-community-header__counter a { color: var(--theme-header-text-color) }\  .wds-community-header__counter a:hover { color: var(--theme-header-text-color--hover) }\ ');

$('.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.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' } ]; }

window.discussionsModuleConfig = { mostrecent: true };

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:FirstEditDate.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' ] });

}