mic_none

User:Insertcleverphrasehere/copyvios.js Source: en.wikipedia.org/wiki/User:Insertcleverphrasehere/copyvios.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), and opens in a new tab rather than the current window */

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",
        "t-copyvio-check",
        "Check this page for copyright violations"
    );
});
$("#t-copyvio-check > a").attr("target", "_blank");