Skip to content

Commit 03446bb

Browse files
committed
优化 [Pixiv]、[W3school] 规则
1 parent 077f6b7 commit 03446bb

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Autopage.user.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 自动无缝翻页
3-
// @version 3.5.9
3+
// @version 3.6.0
44
// @author X.I.U
55
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
66
// @match *://*/*
@@ -1329,6 +1329,7 @@
13291329
forceTarget();
13301330
} else if (indexOF('/tags/') && self == top) {
13311331
curSite = DBSite.pixiv;
1332+
if (indexOF('/novels')) {insStyle('ul[class*="-1 "] > li {display: inline !important;}')} else {insStyle('a[href^="/premium/lead/lp"], div[class*="-0 "] > div[class*="-4 "] > section:first-of-type {display: none}');}
13321333
} else if (indexOF('/users/') && /\/(artworks|illustrations|manga)/.test(location.pathname)) {
13331334
curSite = DBSite.pixiv_user;
13341335
} else if (indexOF('/artworks/')) {
@@ -1337,7 +1338,6 @@
13371338
},
13381339
forceTarget: true,
13391340
iframe: true,
1340-
insStyle: 'div[class*="-0 "] > div[class*="-4 "] > section:first-of-type {display: none}',
13411341
pager: {
13421342
type: 6,
13431343
nextL: 'css;a[aria-disabled="false"][class*="filterProps-Styled-Component"][href]:last-child',
@@ -4006,13 +4006,13 @@
40064006
if (next && next.href.indexOf('/index.') === -1) return next.href;
40074007
curSite = {SiteTypeID: 0}; return ''
40084008
},
4009-
pageE: 'css;#maincontent > *:not(.prenextnav):not(#bpn):not(#tpn)',
4010-
insertP: ['id("bpn") | //div[@class="prenextnav"][last()]', 1],
4009+
pageE: 'css;#maincontent > *:not([class*="prenextnav"]):not(#bpn):not(#tpn)',
4010+
insertP: ['id("bpn") | //div[contains(@class, "prenextnav")][last()]', 1],
40114011
replaceE: 'css;ul.prenext, #navsecond, title',
4012-
scrollE: 'id("bpn") | //div[@class="prenextnav"][last()]',
4012+
scrollE: 'id("bpn") | //div[contains(@class, "prenextnav")][last()]',
40134013
history: true,
40144014
forceHTTPS: true,
4015-
scrollD: 500
4015+
scrollD: 600
40164016
}
40174017
}, // W3school
40184018
runoob: {

0 commit comments

Comments
 (0)