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')), wgULS("修复死链","修復失效連結") ); }