Jump to content

User:JC7V7DC5768/common.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript('User:Evad37/XFDcloser.js'); // [[User:Evad37/XFDcloser]]
function autorm_result()
{
	var close = prompt("Result of the discussion")
        var rationale = prompt("Closure rationale")
	var f = document.editform, t = f.wpTextbox1;
	var rmt = '{{subst:' + 'RM top' + '|' + '\'' + '\'' + '\'' + close + '\'' + '\'' + '\'' + '. ' +  rationale + '{{subst:' + 'RMnac' + '}}' + '}}';
	t.value += "{{subst:" + "RM bottom" + "}}";
	t.value = t.value.replace(/\{\{Requested move\/dated\|.*\}\}/i, rmt);
        t.value = t.value.replace(/\{\{movereq\|\.*\}\}/i, rmt);
	f.wpSummary.value += "Closing requested move survey per [[WP:RM/CI]]; result was: " + close;
        document.editform.submit();
}

function autorm_add_rm_tabs()
{
	// Only add for pages with the right string somewhere in the title
	if ( mw.config.get( 'wgCanonicalNamespace' ) === 'Talk') 
        {
		mw.util.addPortletLink('p-cactions', 'javascript:autorm_result()', "Close RM");
	}
}
 
$(autorm_add_rm_tabs);
importScript('User:Evad37/rater.js'); // [[User:Evad37/rater]]
mw.loader.using("mediawiki.util", function() {
    mw.util.addPortletLink(
        "p-cactions",
        "https://tools.wmflabs.org/copyvios/?lang=" + mw.config.get("wgContentLanguage") + "&project=" + mw.config.get("wgSiteName").toLowerCase() + "&title=" + encodeURIComponent(mw.config.get("wgPageName")),
        "Copyvio check",
        "t-copyvio-check",
        "Check this page for copyright violations"
    );
});
$("#t-copyvio-check > a").attr("target", "_blank");
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Linkback: [[User:Jackmcbarn/editProtectedHelper.js]]
//importScript('User:Enterprisey/afch-dev.js');
importScript( 'User:Equazcion/ScriptInstaller.js' ); // Backlink: [[User:Equazcion/ScriptInstaller.js]]
importScript('User:APersonBot/AFCRHS.js'); //Linkback: [[User:APersonBot/AFCRHS.js]] Added by Script installer
importScript('User:Splarka/oldafd.js'); //Linkback: [[User:Splarka/oldafd.js]] Added by Script installer
importScript('User:Amorymeltzer/oldafd.js'); //Linkback: [[User:Amorymeltzer/oldafd.js]] Added by Script installer
importScript('User:Enterprisey/cv-revdel.js'); //Linkback: [[User:Enterprisey/cv-revdel.js]] Added by Script installer
importScript('User:Enterprisey/quick-before.js'); //Linkback: [[User:Enterprisey/quick-before.js]] Added by Script installer
importScript('User:V111P/js/smartLinkingLoader.js'); //Linkback: [[User:V111P/js/smartLinkingLoader.js]] Added by Script installer
importScript('User:Barticus88/WhatLinksHere.js'); //Linkback: [[User:Barticus88/WhatLinksHere.js]] Added by Script installer
importScript('User:Danski454/stubsearch.js'); //Linkback: [[User:Danski454/stubsearch.js]] Added by Script installer
importScript('Wikipedia:AutoEd/basic.js'); //Linkback: [[Wikipedia:AutoEd/basic.js]] Added by Script installer
importScript('User:TheJJJunk/ARA.js'); //Linkback: [[User:TheJJJunk/ARA.js]] Added by Script installer
importScript('User:Nageh/rollbackSum.js'); //Linkback: [[User:Nageh/rollbackSum.js]] Added by Script installer
importScript('User:MusikAnimal/customWatchlists.js'); //Linkback: [[User:MusikAnimal/customWatchlists.js]] Added by Script installer
importScript('User:Galobtter/Shortdesc helper.js'); //Linkback: [[User:Galobtter/Shortdesc helper.js]] Added by Script installer
importScript('User:Enterprisey/orcp-helper.js'); //Linkback: [[User:Enterprisey/orcp-helper.js]] Added by Script installer
importScript('User:Evad37/MoveToDraft.js'); //Linkback: [[User:Evad37/MoveToDraft.js]] Added by Script installer
importScript('User:Bradv/Scripts/Superlinks.js'); //Linkback: [[User:Bradv/Scripts/Superlinks.js]] Added by Script installer