Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
//------------------------------------// Tool to easily add the copyvio template to image// Author: [[User:Yarl]]; based on MediaWiki:Populate-category.js// Should the edits be saved automatically?if(window.cv_autosave==false){}elseif(window.cv_autosave){}else{cv_autosave=true;}// String constantscv_text="Mark as cv";cv_tooltip="Test text";cv_prompt="Enter URL:";functioncv_nomCv(){varcel=prompt(cv_prompt,'');if(cel==null)return;vareditlk=document.getElementById('ca-edit').getElementsByTagName('a')[0].href;document.location=editlk+'&fakeaction=cv_add&cel='+encodeURIComponent(cel);}functioncv_addCvTemplate(cel){if(cel==''){vartxt='{{copy'+'vio}}\n';}else{vartxt='{{copy'+'vio|source='+cel+'}}\n';}document.editform.wpTextbox1.value=txt+document.editform.wpTextbox1.value;document.editform.wpSummary.value='Mark as copyvio using [[user:Yarl/cv.js|cv.js]]';if(nfd_autosave)document.editform.wpSave.click();}functioncv_onload(){if(wgNamespaceNumber==6){//NS_IMAGEaddLink('p-tb','javascript:cv_nomCv()',cv_text,'pop-cat',cv_tooltip);}varfakeaction=getParamValue('fakeaction');if(fakeaction=='cv_add')cv_addCvTemplate(decodeURIComponent(getParamValue('cel')));}$(cv_onload);// </pre>