User:JJPMaster/Scripts/CopyvioRedirect.js: Difference between revisions

Content deleted Content added
repurposing this script
m JJPMaster moved page User:JJPMaster/CopyvioRedirect.js to User:JJPMaster/Scripts/CopyvioRedirect.js: cleaning up my userspace
 
(5 intermediate revisions by the same user not shown)
Line 1:
if(mw.config.get('wgPageName').toLowerCase().startsWith("copyviocopyvios:"))
window.___location.href = `https://copyvios.toolforge.org/?lang=en&project=wikipedia&title=${mw.config.get('wgPageName').substring(9)}&oldid=&action=search&use_engine=1&use_links=1&turnitin=0&noredirect=true`;
else if(mw.config.get('wgPageName').toLowerCase().startsWith("copypatrol:"))
window.___location.href = `https://copypatrol.wmcloud.org/en?filter=all&filterPage=${mw.config.get('wgPageName').substring(11)}`;