Skip to content

Commit 55481fd

Browse files
committed
新增 [自动无缝翻页] 支持收藏列表
1 parent 4a7b662 commit 55481fd

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

52pojie-Enhanced.user.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 吾爱破解论坛增强 - 自动签到、翻页
3-
// @version 1.2.7
3+
// @version 1.2.8
44
// @author X.I.U
55
// @description 自动签到、自动无缝翻页、屏蔽导读悬赏贴(最新发表页)
66
// @match *://www.52pojie.cn/*
@@ -116,8 +116,19 @@
116116
scrollDelta: 899
117117
}
118118
},
119-
search: {
119+
favorite: {
120120
SiteTypeID: 5,
121+
pager: {
122+
type: 1,
123+
nextLink: '//a[@class="nxt"][@href]',
124+
pageElement: 'css;ul#favorite_ul > li',
125+
HT_insert: ['css;ul#favorite_ul', 2],
126+
replaceE: 'css;div.pg',
127+
scrollDelta: 899
128+
}
129+
},
130+
search: {
131+
SiteTypeID: 6,
121132
pager: {
122133
type: 1,
123134
nextLink: '//a[@class="nxt"][@href]',
@@ -147,6 +158,8 @@
147158
delateReward(); // 屏蔽导读悬赏贴(最新发表)
148159
} else if (location.search.indexOf('mod=collection') > -1) {
149160
curSite = DBSite.collection; // 淘贴列表
161+
} else if (location.search.indexOf('do=favorite') > -1) {
162+
curSite = DBSite.favorite; // 收藏列表
150163
} else if (location.pathname === '/search.php') {
151164
curSite = DBSite.search; // 搜索结果列表
152165
}

0 commit comments

Comments
 (0)