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('wgAction') === 'edit' && mw.util.getParamValue('oldid')) $(wpSummary).val('rv '+mw.util.getParamValue('oldid'));

importArticle({ type: 'script', article: 'u:dev:MediaWiki:CodeQuickLinks/code.js' });

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: 'Análises' }) ) );

$('#WikiaBarWrapper .mytools').before( $('', { class: 'overflow' }).append( $('', { href: mw.util.getUrl('Special:MultipleActivity'), text: 'MultipleActivity' }) ) );

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;

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:CategoryRenameAuto-update/code.js',    'u:dev:MediaWiki:ContribsLink/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: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:MassPatrol/code.js',    'u:dev:MediaWiki:MinimalTestModeAlert.js', 'u:dev:MediaWiki:MultipleActivity.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:PortableListUsers.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:Sofix.js', 'u:dev:MediaWiki:StickySummary.js', 'u:dev:MediaWiki:UserAndIPTools.js', //'u:dev:MediaWiki:UserCheck/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' ] });

}