Skip to content

Commit 5997c03

Browse files
committed
更新 [W3school] 规则
1 parent 2b2b7e5 commit 5997c03

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Autopage.user.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3440,15 +3440,16 @@
34403440
w3school_cn: {
34413441
host: 'www.w3school.com.cn',
34423442
functionStart: function() {if (location.pathname.split('/').length > 2) {curSite = DBSite.w3school_cn;}},
3443+
insStyle: '#maincontent h1:not(:nth-of-type(1)) {margin-top: 30px;}',
34433444
pager: {
34443445
type: 1,
34453446
nextL: function() { // 过滤部分非本页的参考手册
34463447
let next = document.querySelector('li.next > a')
34473448
if (next.href.indexOf('/index.') === -1) return next.href;
34483449
curSite = {SiteTypeID: 0}; return ''
34493450
},
3450-
pageE: 'css;#maincontent > h1, #maincontent > div:not(#tpn):not(#bpn)',
3451-
insertP: ['css;#bpn', 1],
3451+
pageE: 'css;#maincontent > *:not(.prenextnav)',
3452+
insertP: ['//div[@class="prenextnav"][last()]', 1],
34523453
replaceE: 'css;ul.prenext, #navsecond, head > title',
34533454
history: true,
34543455
forceHTTPS: true,

0 commit comments

Comments
 (0)