User:Mello25/global.js

window.BackToTopLoaded = true; // same as ctrl+↑

$(function {

mw.hook('wikipage.content').add(function ($content) { $('.wds-collapsible-panel.wds-is-collapsed:is(.page-footer__categories, .page-footer__languages)').removeClass('wds-is-collapsed'); });

if (mw.config.get('wgAction') === 'edit' && mw.util.getParamValue('oldid')) $(wpSummary).val('rv '+mw.util.getParamValue('oldid'));

if (mw.config.get('wgCanonicalSpecialPageName') === 'Export') $('#curonly>input').prop('checked', false); if (mw.config.get('wgCanonicalSpecialPageName') === 'Import') $('input#assignKnownUsers').prop('checked', true);

$('.WikiaBarWrapper .tools > li:has(.global-shortcuts-help-entry-point,[data-tracking="admindashboard/toolbar/admin"])').hide; [ [    mw.util.getUrl('Special:MultipleActivity'), 'MultipleActivity' ] ].forEach(function(tool) { $( !isNaN(tool[2]) ? '.WikiaBarWrapper .tools-menu > li:nth-child('+tool[2]+')' : '.WikiaBarWrapper .mytools' ).before( $('', { class: 'overflow' }).append(     $('', { href: tool[0], text: tool[1] })    ) ) });

if (mw.util.getParamValue('diff')) { document.onkeydown = function(e) { if (!e.ctrlKey || e.shiftKey) return; switch (e.code) { case 'ArrowLeft': if($('a#differences-prevlink')[0]) $('a#differences-prevlink')[0].click; break; case 'ArrowRight': if ($('a#differences-nextlink')[0]) $('a#differences-nextlink')[0].click; break; } } }

window.customKeyboardShortcuts = [ {   selector: '.explore-menu a[data-tracking="explore-main-page"]', accesskey: 'z' }, { selector: '.content-size-toggle', accesskey: '1' }, {   selector: '.right-rail-toggle', accesskey: '2' }, {   selector: '.skin-theme-toggle-temporal', accesskey: '3', hook: 'dev.themeToggler.loaded' } ];

if ((/pt(-br)?/).test(mw.config.get('wgContentLanguage'))) { window.fdButtons = [ { label: 'SL', summary: 'Serviço de limpeza' }, { label: 'L', summary: 'Limpeza' }, { label: 'V', summary: 'Vandalismo' }, { label: 'S', summary: 'Spam' }, { label: 'B', summary: 'Página em branco' } ]; }

mw.hook('dev.wds').add(function(wds) { mw.hook('fastdelete.init').add(function { $('#FastDeleteBtns').prepend(wds.icon('trash-open-tiny')); }); // css is used here too });

abuseLogRC_entries = 5;

window.AjaxDelete = { noUndelete: 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.dev = window.dev || {}; window.dev.i18n = window.dev.i18n || {}; window.dev.i18n.overrides = window.dev.i18n.overrides || {}; window.dev.i18n.overrides['PortableListUsers'] = window.dev.i18n.overrides['PortableListUsers'] || {}; window.dev.i18n.overrides['PortableListUsers']['title'] = 'PortableListUsers';

window.AutoCreateUserPagesConfig = { content: { 2: ''   },    summary: 'Creating my pages', notify: 'tá feito, chefe, $1!' };

importArticles({ type: 'script',  articles: [    'u:dev:MediaWiki:AbuseLogRC.js',    'u:dev:MediaWiki:AjaxDelete/code.js',    'u:dev:MediaWiki:AutoCreateUserPages.js',    'u:dev:MediaWiki:AnchoredRollback/code.js',    'u:dev:MediaWiki:Bang.js',    'u:dev:MediaWiki:CodeQuickLinks/code.js',    'u:dev:MediaWiki:Discussions Delete All/code.js',    'u:dev:MediaWiki:DiscussionsRailModule/UCP.js',    'u:dev:MediaWiki:DiscussionsViewer.js',    'u:dev:MediaWiki:DoruDev.js',    'u:dev:MediaWiki:DupeArgs.js',    'u:dev:MediaWiki:EditConflictAlert/code.js',    'u:dev:MediaWiki:EditLeaderboard.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:InactiveUsers/code.js',    'u:dev:MediaWiki:LastEdited/code.js',    'u:dev:MediaWiki:MarkBlocked.js',    'u:dev:MediaWiki:MassPatrol/code.js', 'u:dev:MediaWiki:MultipleActivity.js', 'u:dev:MediaWiki:MultipleFileDelete/code.js', 'u:dev:MediaWiki:NewImages.js', 'u:dev:MediaWiki:OpenWithVSC.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:Q.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:RemapAccesskeys.js', 'u:dev:MediaWiki:SeeMoreActivityButton/code.js', 'u:dev:MediaWiki:ShowWROnToolbar.js', 'u:dev:MediaWiki:Sofix.js', 'u:dev:MediaWiki:StickyRailToggler.js', 'u:dev:MediaWiki:StickySummary.js', 'u:dev:MediaWiki:ThemeToggler.js', 'u:dev:MediaWiki:UserAndIPTools.js', 'u:dev:MediaWiki:UserBadge/code.js', 'u:dev:MediaWiki:View_Source/code.js', ] });

});