User:Plantdrew/common.js

//

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'

);

//

var AutoEd_baseurl = 'http://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedia:AutoEd/';

if (location.protocol === 'https:')

{ AutoEd_baseurl = 'https://en.wikipedia.org/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}");

}

//

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

importScript( 'User:Ahecht/Scripts/pageswap.js' ); // Backlink: User:Ahecht/Scripts/pageswap