From 5997c0346df5b4197bb2179490799f8ac27ddd99 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 17 Oct 2021 11:17:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20[W3school]=20=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 9897abc..2c80487 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3440,6 +3440,7 @@ w3school_cn: { host: 'www.w3school.com.cn', functionStart: function() {if (location.pathname.split('/').length > 2) {curSite = DBSite.w3school_cn;}}, + insStyle: '#maincontent h1:not(:nth-of-type(1)) {margin-top: 30px;}', pager: { type: 1, nextL: function() { // 过滤部分非本页的参考手册 @@ -3447,8 +3448,8 @@ if (next.href.indexOf('/index.') === -1) return next.href; curSite = {SiteTypeID: 0}; return '' }, - pageE: 'css;#maincontent > h1, #maincontent > div:not(#tpn):not(#bpn)', - insertP: ['css;#bpn', 1], + pageE: 'css;#maincontent > *:not(.prenextnav)', + insertP: ['//div[@class="prenextnav"][last()]', 1], replaceE: 'css;ul.prenext, #navsecond, head > title', history: true, forceHTTPS: true,