Jump to content

User:Headbomb/tools.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.
if (window.qqToolConfigCustom === undefined){
var qqWhichToolBar="tb"; // "cactions" for top, "personal" for very top, or "tb" for sidebar toolbox
// Which tools? true for yes - false for no
var qqPeerRev=true;
var qqAltImg=true;
var qqDablinks=true;
var qqExtLink=true;
}

$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function() {
if(qqPeerRev=true){mw.util.addPortletLink("p-" + qqWhichToolBar, "https://69.142.160.183/~dispenser/view/Peer_reviewer#page:" + encodeURIComponent( mw.config.get('wgPageName') ), "AutoPeerRev", "qqToolPeerRev", "Automatic Peer Review");}
if(qqAltImg=true){mw.util.addPortletLink("p-" + qqWhichToolBar, "https://69.142.160.183/~dispenser/cgi-bin/dablinks.py?page=" + encodeURIComponent( mw.config.get('wgPageName') ), "Dablinks", "qqToolAltImg", "View DabLinks");}
if(qqDablinks=true){mw.util.addPortletLink("p-" + qqWhichToolBar, "https://69.142.160.183/~dispenser/cgi-bin/webchecklinks.py?page=" + encodeURIComponent( mw.config.get('wgPageName') ), "ExtLinkCheck", "qqToolDabLink", "Check for External Links");}
if(qqExtLink=true){mw.util.addPortletLink("p-" + qqWhichToolBar, "https://69.142.160.183/~dispenser/cgi-bin/altviewer.py?page=" + encodeURIComponent( mw.config.get('wgPageName') ), "AltImgs", "qqToolExtLink", "View Alternate Images for Page");}
} );