User:KuroUrufu/global.js

// wikimarks importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:Wikimarks/code.js',    ] }); // carica multipli /*importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:MultiUpload.js',    ] });*/ importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:UploadMultipleFiles.js',    ] }); mw.config.set('UMFBypassLicenseCheck',true); // recentchangesmultiple importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:RecentChangesMultiple/code.2.js',    ] }); // css sandbox importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:PortableCSSPad/code.js',    ] }); // cancella elenco pagine importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AjaxBatchDelete.js',    ] }); // ripristina elenco pagine importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AjaxBatchUndelete.js',    ] }); // prima modifica utente importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:FirstEditDate.js',    ] }); // elenco pagine in special:wantedcategories importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:CategoryMaintenanceTables.js',    ] }); /* // highlight syntax importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:SyntaxHighlight.js',    ] }); // hide redirects importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AllPagesHideRedirect/code.js',    ] }); // empty edit importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:NullEditButton/code.js',    ] }); // multi file delete importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:MultipleFileDelete/code.js',    ] }); // list files importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:ListFiles/code.js',    ] }); // nuke importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:Nuke/code.js',    ] }); // cache importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:CacheCheck/code.js',    ] }); importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:Name Sequencer/code.js',    ] }); // mass category importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:MassCategorization/code.js',    ] }); // un-hide categories and interlanguage links importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:ReturnOasisCat.js',    ] });

// remove unreachable threads importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:RemoveLegacyThreads.js',    ] });

// edit user archives importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:EditUserTalkArchive.js',    ] });

// mass null edit importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:MassNullEdit/code.js',    ] });

// interlanguage importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:QuickIW/code.js',    ] });

//whatlinkshere in dropdown importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:WhatLinksHere/code.js',    ] });

// messages for blocks window.MessageBlock = { title: 'Ban', message: 'Ciao; mi spiace informarti che il tuo account è stato bloccato per una durata di $2 per $1.' }; importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:MessageBlock/code.js',    ] });

// mass rename importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:MassRename/code.js',    ] });

// mass unprotect importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:MassProtect/code.js',    ] });

// LookupUser fixes (by pcj) $(function {	if (mw.config.get('wgCanonicalSpecialPageName') !== 'LookupUser') return;	var prom = [];	$('div.lookup-user__table-wrapper > table > tbody > tr > td:nth-child(2) > a:first-child').each(function{ var baseUrl = $(this).text.trim; prom.push($.getJSON(baseUrl+'api.php?action=query&meta=siteinfo&sipropr=variables&format=json&callback=?')); });	Promise.allSettled(prom).then(function(res) { for (var i in res) { if (res[i].status !== 'rejected') continue; // just assume if we have an error the wiki is closed. // does not consider further in the event the wiki is *otherwise* unreachable, // possible exceptions: behind the VPN, some error state in the API, server error, etc.			$('div.lookup-user__table-wrapper > table > tbody > tr:eq('+i+') > td:nth-child(1)').wrapInner(' '); }	}); });

// quick anti-vandal tools importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:WHAM/code.2.js',    ] });

// quick interlangs importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:QuickIW/code.js',    ] });

// fix redirects importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:RedirectManagement/code.js',    ] });

// userpage importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AutoCreateUserPages.js',    ] }); window.AutoCreateUserPagesConfig = { content: { 2: ''   },    summary: 'Creating user page', notify: 'Pagine utente creata, $1!' };