User:Multichill/monobook.js

//

function doCWC { document.editform.wpTextbox1.value = '{' + '{' + 'Copy to Wikimedia Commons by BotMultichill}}\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'This image is ready to be moved to Wikimedia Commons'; document.editform.wpMinoredit.checked = true; // document.editform.submit; }

function doCommons_cat { document.editform.wpTextbox1.value = '{' + '{' + 'Commons cat' + '|' + ' }}\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Adding link to Wikimedia Commons'; document.editform.wpMinoredit.checked = true; // document.editform.submit; }

addOnloadHook(function { if ((mw.config.get('wgNamespaceNumber') == 6) && (document.editform)) {     mw.util.addPortletLink("p-cactions", "javascript:doCWC", "Copy to Commons", "ca-CWC", "This image is ready to be moved to Wikimedia Commons", "", "");  } });

addOnloadHook(function { if ((mw.config.get('wgNamespaceNumber') == 14) && (document.editform)) {     mw.util.addPortletLink("p-cactions", "javascript:doCommons_cat", "Commons cat", "ca-Commons_cat", "Add commonscat link", "", "");  }      });

//

/**** quick image delete ****/ /* document.write(' '); /* This is to keep track of who is using this extension: User:Howcheng/quickimgdelete.js */