Jump to content

User:Epicgenius/sidebar stuff.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Epicgenius (talk | contribs) at 03:56, 26 October 2020 (test). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
function addlinks(){
	// mw.util.addPortletLink("p-tb", mw.config.get('wgArticlePath').replace('$1', "Project:AutoWikiBrowser/Script"), "JS Wiki Browser", "tb-awbscript", "Run Javascript Wiki Browser");
    addPortletLink("p-tb","http://tools.wmflabs.org/citer/" ,"Citer","tb-Citer","Citer ref filler");
	addPortletLink("p-tb","http://reftag.appspot.com/" ,"Reftag","tb-Reftag","Reftag for Google Books");
	addPortletLink("p-tb","http://edwardbetts.com/find_link/" ,"Find Link tool","tb-FindLinktool","Find Link tool");
    addPortletLink("p-tb","https://tools.wmflabs.org/iabot/index.php" ,"Archive Bot🔒","tb-IABot","Internet Archive Bot (requires login)");
}
 
addOnloadHook(addlinks);

$.when(mw.loader.using('mediawiki.util'), $.ready).then( function() {
    var link = mw.util.addPortletLink('p-tb', '#', 'UPSD', '#t-upsd', 'Highlight unreliable sources');
    link.addEventListener('click', function(e) {
        e.preventDefault();
        importScript('User:Headbomb/unreliable.js');
    });
});