User:JJPMaster/Scripts/CopyvioRedirect.js

This is an old revision of this page, as edited by JJPMaster (talk | contribs) at 23:31, 26 November 2024 (fix). 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.
if(mw.config.get('wgPageName').toLowerCase().startsWith("copyvios:")) 
	window.___location.href = `https://copyvios.toolforge.org/?lang=en&project=wikipedia&title=${mw.config.get('wgPageName').replace("copyvios:", "")}&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').replace("copypatrol:", "")}`;