User:Ilmari Karonen/fixcopyrightedfreeuse.js

// REPLACE Template:CopyrightedFreeUse: addOnloadHook(function {    var editForm = document.forms.editform;    if (!editForm || !window.location.search || !window.location.search.match(/[?&]action=edit(&|$)/) || !window.location.search.match(/[?&]fixcopyrightedfreeuse=/) ) return;

editForm.wpTextbox1.value = editForm.wpTextbox1.value.replace(/\{\{\s*Copyrighted[_ ]?Free[_ ]?Use[|\s]*\}\}/ig, ""); editForm.wpSummary.value = "replacing with  per discussion";

editForm.wpMinoredit.checked = true; editForm.wpSave.click; // I'm feeling lucky! }); document.write('span.hiddenStructure#fixCopyrightedFreeUse {display: inline;} ');