User:Headbomb/tools.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
Documentation for this user script can be added at User:Headbomb/tools. |
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");}
} );