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 20:54, 2 April 2020 (+). 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 addciter(){
          addPortletLink("p-tb","http://tools.wmflabs.org/citer/" ,"Citer","tb-Citer","Citer ref filler");
}
 
addOnloadHook(addciter);

function addreftag(){
          addPortletLink("p-tb","http://reftag.appspot.com/" ,"Reftag","tb-Reftag","Reftag for Google Books");
}
 
addOnloadHook(addreftag);

function addlt(){
          addPortletLink("p-tb","http://edwardbetts.com/find_link/" ,"Find Link tool","tb-FindLinktool","Find Link tool");
}
 
addOnloadHook(addlt);
/* // No longer working as of August 2017
function addcl(){
          addPortletLink("p-tb","http://dispenser.homenet.org/~dispenser/view/Checklinks" ,"Checklinks","tb-Checklinks","Checklinks");
}
 
addOnloadHook(addcl);
*/
function addiab(){
          addPortletLink("p-tb","https://tools.wmflabs.org/iabot/index.php" ,"Archive Bot🔒","tb-IABot","Internet Archive Bot (requires login)");
}
 
addOnloadHook(addiab);

$.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');
    });
});