User:Insertcleverphrasehere/copyviostest.js

/* Adds a link in 'more' to do a copyvio check on the given page. Copy of User:The Earwig/copyvios.js, but with a different link location (in the same place as other NPP scripts) */

mw.loader.using("mediawiki.util", function {   mw.util.addPortletLink( "p-cactions", "https://tools.wmflabs.org/copyvios/?lang=" + mw.config.get("wgContentLanguage") + "&project=" + mw.config.get("wgSiteName").toLowerCase + "&title=" + encodeURIComponent(mw.config.get("wgPageName")), "Copyvio check test", "t-copyvio-check", "Check this page for copyright violations" ); }); $("#t-copyvio-check > a").attr("target", "_blank");