Skip to content

Commit bd4f07b

Browse files
committed
新增 [宽带山论坛] 帖子内支持
1 parent e86fff7 commit bd4f07b

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

Autopage.user.js

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 自动无缝翻页
3-
// @version 2.1.2
3+
// @version 2.1.3
44
// @author X.I.U
55
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条、360、微信、贴吧、豆瓣、微博、NGA、V2EX、起点小说、煎蛋网、超能网、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、小霸王其乐无穷、CS.RIN.RU、FitGirl、茶杯狐、NO视频、低端影视、奈菲影视、91美剧网、真不卡影院、片库、音范丝、BT之家、爱恋动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、小众软件、极简插件、异次元软件、异星软件空间、动漫狂、漫画猫、漫画DB、HiComic、动漫之家、古风漫画网、PubMed、wikiHow、GreasyFork(以上仅一部分,更多的写不下了...
66
// @match *://*/*
@@ -1947,6 +1947,12 @@
19471947
kdslife: {
19481948
SiteTypeID: 0,
19491949
host: 'club.kdslife.com',
1950+
functionStart: function() {
1951+
if (location.pathname.indexOf('/f_') > -1) {
1952+
curSite = DBSite.kdslife;
1953+
} else if (location.pathname.indexOf('/t_') > -1) {
1954+
curSite = DBSite.kdslife_t;
1955+
}},
19501956
pager: {
19511957
type: 1,
19521958
nextLink: '//div[@class="fr i3_r"]/a[@href][contains(text(), "后一页")]',
@@ -1956,6 +1962,18 @@
19561962
scrollDelta: 1000
19571963
}
19581964
}, // 宽带山论坛
1965+
kdslife_t: {
1966+
SiteTypeID: 0,
1967+
pager: {
1968+
type: 1,
1969+
nextLink: '//div[@class="pages"]/a[contains(text(), ">>")]',
1970+
pageElement: 'css;#reply_list_panel > *, script[src*="ui/js/kds.js"]',
1971+
insertPosition: ['css;#reply_list_panel', 3],
1972+
replaceE: 'css;.pages',
1973+
scriptType: 3,
1974+
scrollDelta: 1000
1975+
}
1976+
}, // 宽带山论坛 - 帖子内
19591977
libaclub: {
19601978
SiteTypeID: 0,
19611979
host: 'www.libaclub.com',
@@ -2013,7 +2031,7 @@
20132031
replaceE: 'css;div.ui-paging',
20142032
scrollDelta: 2000
20152033
}
2016-
}, // 篱笆网论坛 - 帖子内 - 打印版
2034+
}, // 篱笆网论坛 - 帖子内 - 打印版
20172035
libaclub_search: {
20182036
SiteTypeID: 0,
20192037
pager: {
@@ -3195,7 +3213,7 @@
31953213
url = this.getFullHref(getElementByXpath(curSite.pager.nextLink));
31963214
}
31973215
}
3198-
console.log(url, curSite.pageUrl);
3216+
//console.log(url, curSite.pageUrl);
31993217
if (url === '') return;
32003218
if (curSite.pageUrl === url) return;// 避免重复加载相同的页面
32013219
curSite.pageUrl = url;

0 commit comments

Comments
 (0)