User:Ericliu1912/fixdeadlinks.js

注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。

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