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())'
 
repurposing this script
Line 1:
if(mw.config.get('wgPageName').toLowerCase().startsWith("copyvio:"))
if(document.getElementsByClassName("flaggedrevs_reviewform").length !== 0)
window.___location.href = `https://copyvios.toolforge.org/?lang=en&project=wikipedia&title=${mw.config.get('wgPageName')}&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">`)
//if(mw.config.get())