if ( mw.config.get( 'wgAction' ) == 'view' && mw.config.get( 'wgIsArticle' )){ mw.util.addPortletLink( "p-tb", "//tools.wmflabs.org/iabot/index.php?page=runbotsingle&pagesearch=" + encodeURIComponent(mw.config.get('wgPageName')), "修复死链" ); }