User:RetroCraft314/dabsolver.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* Adds link to go to [[WP:DABSOLVER]] for the current page. */

mw.loader.using("mediawiki.util", function() {
    mw.util.addPortletLink(
        "p-tb",
        "https://dispenser.info.tm/~dispenser/cgi-bin/dab_solver.py?page=" + mw.config.get("wgPageName") + "&commonfixes=on",
        "Dab solver",
        "t-dab-solver",
        "Disambiguate links",
        "3"
    );
});