User:Irukaza/common.js:修订间差异

跳到导航 跳到搜索
添加816字节 、​ 2020年4月8日 (星期三)
无编辑摘要
imported>=海豚=
([InPageEdit] 没有编辑摘要)
imported>=海豚=
无编辑摘要
(未显示同一用户的1个中间版本)
第5行: 第5行:
    });
    });
})(mediaWiki);
})(mediaWiki);
     $('#mw-content-text a').each(function() {
       try {
         var link = new mw.Uri(this.href);
         if (link.host !== 'www.hmoegirl.com') return;
         if (/^\/api\.php/i.test(link.path)) return;
         if (!link.query.title && /\.php$/i.test(link.path)) return;
         if (link.query && (link.query.action || link.query.diff)) return;
         var href = ((link.query.title || decodeURI(link.path.substring(1))).match(/^user:[^\/]+|^user[ _]talk:[^\/]+/i) || [null])[0];
         if (href) $(this).after('<sub>[<a target="_blank" title="主站上的用户 ' + href.replace(/user(_talk)?\:/i, '') + '" href="https://zh.moegirl.org/' + href + '">主</a>]</sub>');
       } catch (e) {
         return;
       }
     });
匿名用户

导航菜单