Jump to content

User:Epicgenius/sidebar stuff.js

From Wikipedia, the free encyclopedia
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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.
mw.loader.using("mediawiki.util", function() {
    mw.util.addPortletLink("p-tb","http://tools.wmflabs.org/citer/" ,"Citer","tb-Citer","Citer ref filler");
	// mw.util.addPortletLink("p-tb","http://reftag.appspot.com/" ,"Reftag","tb-Reftag","Reftag for Google Books");
	mw.util.addPortletLink("p-tb","http://edwardbetts.com/find_link/" ,"Find Link tool","tb-FindLinktool","Find Link tool");
    mw.util.addPortletLink("p-tb","https://tools.wmflabs.org/iabot/index.php?page=runbotsingle&pagesearch="+encodeURI(mw.config.get('wgPageName').replaceAll("_", "+").replace("Talk:",""))+"&archiveall=on&wiki=enwiki" ,"Archive Bot🔒","tb-IABot","Internet Archive Bot (requires login)");
    mw.util.addPortletLink("p-tb","http://69.142.160.183/~dispenser/cgi-bin/dab_solver.py?page="+mw.config.get('wgContentLanguage')+":"+encodeURIComponent(mw.config.get('wgPageName')),"Dab Solver");
/*
    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');
    });
*/
});