Skip to content

Commit 6de42d2

Browse files
committed
修复 [帖子内自动翻页] 功能
1 parent 43c1612 commit 6de42d2

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

V2ex-Enhanced.user.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name V2EX 增强
3-
// @version 1.1.7
3+
// @version 1.1.8
44
// @author X.I.U
55
// @description 自动签到、链接转图片、自动无缝翻页、使用 SOV2EX 搜索、回到顶部(右键点击两侧空白处)、快速回复(左键双击两侧空白处)、新标签页打开链接、标签页伪装为 Github(摸鱼)
66
// @match *://v2ex.com/*
@@ -125,18 +125,18 @@
125125
scrollDelta: 1500
126126
}
127127
},
128-
reply: { // 帖子内容页
128+
reply: { // 帖子内容页(从前往后)
129129
SiteTypeID: 5,
130130
pager: {
131131
type: 1,
132-
nextLink: '//a[@class="page_current"]/preceding-sibling::a[1][@href]',
132+
nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]',
133133
pageElement: 'css;.cell[id^="r_"]',
134134
HT_insert: ['//div[starts-with(@id, "r_")][last()]/following-sibling::div[@class="cell"][1]', 1],
135135
replaceE: 'css;#Main > .box > .cell[style] > table',
136136
scrollDelta: 1500
137137
}
138138
},
139-
reply_positive: { // 帖子内容页(正序
139+
reply_positive: { // 帖子内容页(从后往前
140140
SiteTypeID: 6,
141141
pager: {
142142
type: 1,
@@ -188,7 +188,7 @@
188188
if (location.pathname.indexOf('/go/') > -1) { // 分类主题页
189189
curSite = DBSite.go;
190190
} else if (location.pathname.indexOf('/t/') > -1) { // 帖子内容页
191-
if(menu_value('menu_pageLoading_reply'))curSite = DBSite.reply_positive; // 帖子内自动无缝翻页
191+
if(menu_value('menu_pageLoading_reply'))curSite = DBSite.reply; // 帖子内自动无缝翻页
192192
if(menu_value('menu_quickReply'))quickReply(); // 快速回复(双击左右两侧空白处)
193193
} else if (location.pathname.indexOf('/replies') > -1) { // 用户回复页
194194
curSite = DBSite.replies;
@@ -249,8 +249,8 @@
249249
qiandao.href = 'javascript:void(0);';
250250
}
251251
} else {
252-
GM_notification({text: '自动签到失败!请访问 V2EX 首页试试。\n如果持续几天都签到失败,请联系作者解决!', timeout: 4000, onclick() {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://greasyfork.org/zh-CN/scripts/424246/feedback', {active: true,insert: true,setParent: true});}});
253-
console.warn('[V2EX 增强] 自动签到失败!请访问 V2EX 首页试试。如果持续几天都签到失败,请联系作者解决!')
252+
GM_notification({text: '自动签到失败!请访问 V2EX 首页试试。\n如果连续几天都签到失败,请联系作者解决!', timeout: 4000, onclick() {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://greasyfork.org/zh-CN/scripts/424246/feedback', {active: true,insert: true,setParent: true});}});
253+
console.warn('[V2EX 增强] 自动签到失败!请访问 V2EX 首页试试。如果连续几天都签到失败,请联系作者解决!')
254254
if (qiandao) qiandao.textContent = '自动签到失败!请尝试手动签到!';
255255
}
256256
}

0 commit comments

Comments
 (0)