Widget:TalkToc:修订间差异

H萌娘,万物皆可H的百科全书!
跳到导航 跳到搜索
imported>=海豚=
无编辑摘要
imported>=海豚=
无编辑摘要
(未显示同一用户的1个中间版本)
第135行: 第135行:
          containers.first().before('<' + 'div id="talkTocBox"><' + 'table><' + '/table><' + '/div>');
          containers.first().before('<' + 'div id="talkTocBox"><' + 'table><' + '/table><' + '/div>');
          var self = $('#talkTocBox table'),
          var self = $('#talkTocBox table'),
           a = $('<' + 'a/>').text('');
         self.append('<' + 'caption/>').find('caption').append('<br/>').append('').append(a).append('')
           .end().append('<' + 'tbody/>');
          containers.not('.savedDiscussion').each(function(i) {
          containers.not('.savedDiscussion').each(function(i) {
            if (i % 4 === 0) self.find('tbody:last').append('<' + 'tr/>');
            if (i % 4 === 0) self.find('tbody:last').append('<' + 'tr/>');
第144行: 第147行:
                if (!href) return;
                if (!href) return;
                var link = new mw.Uri(href);
                var link = new mw.Uri(href);
                if (link.host !== 'www.hmoegirl.com') this.userNameErrorReason = "link.host !== 'www.hmoegirl.com'";
                if (link.host !== 'www.moegirl.com') this.userNameErrorReason = "link.host !== 'www.moegirl.com'";
                else if (/^\/api\.php/i.test(link.path)) this.userNameErrorReason = "!!/^\\/api\\.php/i.test(link.path)";
                else if (/^\/api\.php/i.test(link.path)) this.userNameErrorReason = "!!/^\\/api\\.php/i.test(link.path)";
                else if (!link.query.title && /\.php$/i.test(link.path)) this.userNameErrorReason = "!!(!link.query.title && /\\.php$/i.test(link.path))";
                else if (!link.query.title && /\.php$/i.test(link.path)) this.userNameErrorReason = "!!(!link.query.title && /\\.php$/i.test(link.path))";

2021年8月14日 (六) 22:01的版本