Skip to content

Commit 5b1218b

Browse files
committed
新增 [普象网]、[宽带山论坛] 支持
1 parent 4b2a8bd commit 5b1218b

1 file changed

Lines changed: 48 additions & 2 deletions

File tree

Autopage.user.js

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 自动无缝翻页
3-
// @version 2.0.0
3+
// @version 2.0.1
44
// @author X.I.U
55
// @description 无缝拼接下一页内容,目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、贴吧、豆瓣、微博、NGA(玩家社区)、V2EX、看雪论坛、煎蛋网、超能网、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、小霸王其乐无穷、茶杯狐、NO视频、低端影视、奈菲影视、91美剧网、真不卡影院、片库、音范丝、BT之家、爱恋动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、小众软件、极简插件、果核剥壳、六音软件、微当下载、th-sjy 汉化、异次元软件、老殁殁漂遥、异星软件空间、动漫狂、漫画猫、漫画DB、HiComic(嗨漫画)、动漫之家、古风漫画网、砂之船动漫家、PubMed、wikiHow、GreasyFork、CS.RIN.RU、FitGirl(更多的写不下了...
66
// @match *://*/*
@@ -648,6 +648,36 @@
648648
scrollDelta: 1500
649649
}
650650
}, // IT 之家
651+
puxiang: {
652+
SiteTypeID: 0,
653+
host: 'www.puxiang.com',
654+
functionStart: function() {if (location.pathname === '/search/favorite') {
655+
curSite = DBSite.puxiang_collect;
656+
} else if (location.pathname === '/search/puxiang' || location.pathname === '/list' || location.pathname === '/galleries' || location.pathname === '/articles') {
657+
curSite = DBSite.puxiang;
658+
} else if (location.pathname === '/') {
659+
curSite = DBSite.puxiang; curSite.pager.scrollDelta = 4000;
660+
}},
661+
pager: {
662+
type: 1,
663+
nextLink: 'css;li.next > a[href]',
664+
pageElement: 'css;.work-list > div',
665+
insertPosition: ['css;.work-list', 3],
666+
replaceE: 'css;.pagerbar',
667+
scrollDelta: 1500
668+
}
669+
}, // 普象网 - 作品集/搜索页
670+
puxiang_collect: {
671+
SiteTypeID: 0,
672+
pager: {
673+
type: 1,
674+
nextLink: 'css;li.next > a[href]',
675+
pageElement: 'css;.collect-list > div',
676+
insertPosition: ['css;.collect-list', 3],
677+
replaceE: 'css;.pagerbar',
678+
scrollDelta: 1500
679+
}
680+
}, // 普象网 - 收藏夹
651681
_58pic: {
652682
SiteTypeID: 0,
653683
host: 'www.58pic.com',
@@ -1749,7 +1779,19 @@
17491779
replaceE: 'css;.fy',
17501780
scrollDelta: 1000
17511781
}
1752-
} // 如意了教育 - 试卷
1782+
}, // 如意了教育 - 试卷
1783+
kdslife: {
1784+
SiteTypeID: 0,
1785+
host: 'club.kdslife.com',
1786+
pager: {
1787+
type: 1,
1788+
nextLink: '//div[@class="fr i3_r"]/a[@href][contains(text(), "后一页")]',
1789+
pageElement: 'css;ul.main_List > li.i2:not(.h_bg)',
1790+
insertPosition: ['css;ul.main_List > li.i3', 1],
1791+
replaceE: 'css;ul.main_List > li.i3',
1792+
scrollDelta: 1000
1793+
}
1794+
} // 宽带山论坛
17531795
};
17541796
// 生成 SiteTypeID
17551797
generateID();
@@ -2148,6 +2190,7 @@
21482190
function manhuacat_functionNext(pageElems, type) {
21492191
if (type === 'url') {
21502192
if(pageElems.code == '0000') {
2193+
if (pageElems.url === curSite.pageUrl) return
21512194
curSite.pageUrl = pageElems.url;
21522195
getPageElems(curSite.pageUrl); // 真正的下一页链接
21532196
}
@@ -2300,6 +2343,7 @@
23002343
let next;
23012344
next = document.querySelector('span.next > a[href]')
23022345
if (next) {
2346+
if (next.href === curSite.pageUrl) return
23032347
curSite.pageUrl = next.href;
23042348
getPageElems(curSite.pageUrl);
23052349
}
@@ -2357,6 +2401,7 @@
23572401
let next;
23582402
next = document.getElementById('next_chapter')
23592403
if (next) {
2404+
if (next.href === curSite.pageUrl) return
23602405
curSite.pageUrl = next.href;
23612406
getPageElems(curSite.pageUrl);
23622407
}
@@ -2399,6 +2444,7 @@
23992444
let next;
24002445
next = document.querySelector('.comicContent-next > a[href]')
24012446
if (next) {
2447+
if (next.href === curSite.pageUrl) return
24022448
curSite.pageUrl = next.href;
24032449
getPageElems(curSite.pageUrl);
24042450
}

0 commit comments

Comments
 (0)