Jump to content

User:Plantdrew/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.
// <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/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}");
}
// </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]]