MediaWiki:Gadget-InterlanguageChecker.js

(function(window, $, mw) {   if (window.InterlanguageCheckerLoaded) return;    window.InterlanguageCheckerLoaded = true;

$(function {       if (skin !== "oasis") return;        var menuItems =            $(".page-header__contribution-buttons .wds-dropdown .wds-list");        if (!menuItems.length) return;

var conf = mw.config.get(["wgPageName", "wgServer", "wgScriptPath"]) var apiUrl = conf.wgServer + conf.wgScriptPath + "/api.php"; var ilcUrl = "https://fwdekker.com/tools/interlanguage-checker/?" +               "&api=" + encodeURIComponent(apiUrl) + "&article=" + encodeURIComponent(conf.wgPageName); menuItems.append(           "" +                "Check IW"        ); }); }(this, jQuery, mediaWiki));