User:Cookai1205/js/Gadget-IABot.js
外观
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
/* IABot 連結
縫合怪,本人完全不懂JS
*/
if ( mw.config.get( 'wgNamespaceNumber' ) == 0 ) {
if ( ( mw.config.get( 'wgMFAmc' ) == true ) && ( $( '#p-tb' ).length != 0 ) ) {
$( '#p-tb' ).append( '<li class="mw-list-item mw-list-item-js toggle-list-item" id="t-cookaiiabot" data-minerva-portlet="true"><a class="toggle-list-item__anchor" href="' + '//iabot.wmcloud.org/index.php?page=runbotsingle&archiveall=on&pagesearch=' + mw.config.get( 'wgPageName' ) + '" data-mw="interface"><span class="minerva-icon minerva-icon--iabot"></span><span class="toggle-list-item__label">IABot</span></a></li>' );
}
else {
addPortletLink(
'p-tb',
'//iabot.wmcloud.org/index.php?page=runbotsingle&archiveall=on&pagesearch=' + mw.config.get( 'wgPageName' ),
'IABot',
'p-iabot',
'IABot'
);
}
}