User:Plantdrew/common.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
The accompanying .css page for this skin is at User:Plantdrew/common.css. |
// <nowiki>
importScript('User:Jts1882/taxonomybrowser.js');
importScript('User:William Avery/taxoboxalyzer.js');
importScript('User:Evad37/rater.js'); // [[User:Evad37/rater]]
mw.util.addPortletLink(
'p-personal',
'/wiki/Special:PrefixIndex/User:Plantdrew',
'My subpages',
'pt-mysubpages',
'Show my subpages',
null,
'#pt-preferences'
);
//<source lang=javascript>
var AutoEd_baseurl = 'http://en.wikipedia.org/enwiki/w/index.php?action=raw&ctype=text/javascript&title=Wikipedia:AutoEd/';
if (location.protocol === 'https:')
{ AutoEd_baseurl = 'https://en.wikipedia.org/enwiki/w/index.php?action=raw&ctype=text/javascript&title=Wikipedia:AutoEd/';
}
mw.loader.load(AutoEd_baseurl + 'core.js'); //Imports the "framework" script needed to make AutoEd work
//Define edit summary
autoEdTag = "added R cat (plant redirect to scientific name)";
autoEdClick = false;
function autoEdFunctions()
{ //Activates individual modules when "auto ed" tab is clicked
var txt = document.editform.wpTextbox1;
// add R to scientific name|plant to uncategorized redirects
txt.value = txt.value.replace(/^#[Rr][Ee][Dd][Ii][Rr][Ee][Cc][Tt]\s*\[\[(.*)\]\]\s$/, "#REDIRECT [[$1]]\n\n{{R to scientific name|plant}}");
// fix Myrsinaceae articles
//txt.value = txt.value.replace("Myrsinaceae-stub","Ericales-stub");
//txt.value = txt.value.replace(/Myrsinaceae([^/])/g, "Primulaceae$1");
// txt.value = txt.value.replace(/\]\]\s*\{\{/g, "]]\n\n{{");
// txt.value = txt.value.replace(/\}\}\s*\{\{/g, "}}\n{{");
// txt.value = txt.value.replace(/\{\{R to scientific name\}/g, "{{R to scientific name|plant}");
// txt.value = txt.value.replace(/\{\{R to alternative scientific name\}/g, "{{R to alternative scientific name|plant}");
// txt.value = txt.value.replace(/\{\{R from scientific name\}/g, "{{R from scientific name|plant}");
}
// </nowiki>
importScript('User:קיפודנחש/cat-a-lot.js'); // Backlink: [[User:קיפודנחש/cat-a-lot.js]]
importScript('User:Qwerfjkl/scripts/massXFD.js'); // Backlink: [[User:Qwerfjkl/scripts/massXFD.js]]
importScript('User:Nardog/CatChangesViewer.js'); // Backlink: [[User:Nardog/CatChangesViewer.js]]