mic_none

User:Dispenser/Link checker/toolbox.js Source: en.wikipedia.org/wiki/User:Dispenser/Link_checker/toolbox.js

/** Checklinks toolbox item ***************************************************
 * 
 *  Description: Adds an item in toolbox portlet that runs the checklinks tool 
 *               on the viewed page.
 *  Maintainers: [[User:Dispenser]]
 *  Installation: Copy and paste following code into you /monobook.js
 *  <nowiki>         {{subst:js|User:Dispenser/Link checker/toolbox.js}}
 *  </nowiki>
 */
function checklinks(){
    mw.util.addPortletLink('p-tb', 'http://toolserver.org/~dispenser/cgi-bin/webchecklinks.py?page=' + mw.config.get('wgContentLanguage') + ':' + mw.config.get('wgPageName'), 'Check external links', 't-checklinks');
    }
if(mw.config.get('wgIsArticle')){
    addOnloadHook(checklinks);
    }