Jump to content

User:1AmNobody24/IABot toolbox links.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 two toolbox links to open the IABbot Management Interface single page and bot job page

$.when(
    $.ready,
    mw.loader.using("mediawiki.util")
).then( function() {
        mw.util.addPortletLink( 
        "p-tb", //target tab
        'https://iabot.toolforge.org/index.php?page=runbotsingle',
        'IABot single', //link text
        'Open the IABbot Management Interface'
    );
    	mw.util.addPortletLink( 
        "p-tb", //target tab
        'https://iabot.toolforge.org/index.php?page=runbotqueue',
        'IABot bot job', //link text
        'Open the IABbot Management Interface'
    );
});
//[[Category:Wikipedia scripts]]