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

Content deleted Content added
Created page with 'if(document.getElementsByClassName("flaggedrevs_reviewform").length !== 0) $("#mw-fr-submit-reject").after(`<input name="wpReject2" id="mw-fr-submit-reject2" class="cdx-button cdx-button--action-destructive" title="Revert these changes with one click" type="submit" value="Revert changes immediately">`) //if(mw.config.get())'
 
m JJPMaster moved page User:JJPMaster/CopyvioRedirect.js to User:JJPMaster/Scripts/CopyvioRedirect.js: cleaning up my userspace
 
(6 intermediate revisions by the same user not shown)
Line 1:
if(mw.config.get('wgPageName').toLowerCase().startsWith("copyvios:"))
if(document.getElementsByClassName("flaggedrevs_reviewform").length !== 0)
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`;
$("#mw-fr-submit-reject").after(`<input name="wpReject2" id="mw-fr-submit-reject2" class="cdx-button cdx-button--action-destructive" title="Revert these changes with one click" type="submit" value="Revert changes immediately">`)
//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)}`;