imported>=海豚= |
imported>=海豚= |
第1行: |
第1行: |
| //Explanations for this javaScript code in http://zh.moegirl.org/User:AnnAngela/js
| | [[ 分类:工 口魔物娘图鉴]] |
| (function(mw) {
| |
| mw.loader.implement('AnnToolsPersonalLabel', function($, jQuery) {
| |
| $('#pt-watchlist').after('<li id="pt-backlog"><a href="//www.hmoegirl.com/ 分类: 积压工作">积压 工 作</a></li><li id="pt-sandbox"><a href="//www.hmoegirl.com/User:=海豚=/沙盒">我的沙盒</a></li>');
| |
| });
| |
| })(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;
| |
| }
| |
| });
| |