imported>=海豚=
无编辑摘要
imported>=海豚=
无编辑摘要
第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'),
                  self.append('<' + 'tbody/>');
                    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/>');
第145行: 第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))";