Jump to content

User:Plantdrew/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Plantdrew (talk | contribs) at 16:48, 20 March 2015. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
 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/';
}
 
importScriptURI(AutoEd_baseurl + 'core.js'); //Imports the "framework" script needed to make AutoEd work
 
//Define edit summary
 
autoEdTag = "plant redirect";
autoEdClick = false;
 
function myautoedit(str)
{
  str = str.replace(/\]\]\s*\{\{R to scientific name\}/g, "]]\n\n{{R to scientific name|plant}");
  return str;
}