|
1 | 1 | // ==UserScript== |
2 | 2 | // @name V2EX 增强 |
3 | | -// @version 1.1.7 |
| 3 | +// @version 1.1.8 |
4 | 4 | // @author X.I.U |
5 | 5 | // @description 自动签到、链接转图片、自动无缝翻页、使用 SOV2EX 搜索、回到顶部(右键点击两侧空白处)、快速回复(左键双击两侧空白处)、新标签页打开链接、标签页伪装为 Github(摸鱼) |
6 | 6 | // @match *://v2ex.com/* |
|
125 | 125 | scrollDelta: 1500 |
126 | 126 | } |
127 | 127 | }, |
128 | | - reply: { // 帖子内容页 |
| 128 | + reply: { // 帖子内容页(从前往后) |
129 | 129 | SiteTypeID: 5, |
130 | 130 | pager: { |
131 | 131 | type: 1, |
132 | | - nextLink: '//a[@class="page_current"]/preceding-sibling::a[1][@href]', |
| 132 | + nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]', |
133 | 133 | pageElement: 'css;.cell[id^="r_"]', |
134 | 134 | HT_insert: ['//div[starts-with(@id, "r_")][last()]/following-sibling::div[@class="cell"][1]', 1], |
135 | 135 | replaceE: 'css;#Main > .box > .cell[style] > table', |
136 | 136 | scrollDelta: 1500 |
137 | 137 | } |
138 | 138 | }, |
139 | | - reply_positive: { // 帖子内容页(正序) |
| 139 | + reply_positive: { // 帖子内容页(从后往前) |
140 | 140 | SiteTypeID: 6, |
141 | 141 | pager: { |
142 | 142 | type: 1, |
|
188 | 188 | if (location.pathname.indexOf('/go/') > -1) { // 分类主题页 |
189 | 189 | curSite = DBSite.go; |
190 | 190 | } 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; // 帖子内自动无缝翻页 |
192 | 192 | if(menu_value('menu_quickReply'))quickReply(); // 快速回复(双击左右两侧空白处) |
193 | 193 | } else if (location.pathname.indexOf('/replies') > -1) { // 用户回复页 |
194 | 194 | curSite = DBSite.replies; |
|
249 | 249 | qiandao.href = 'javascript:void(0);'; |
250 | 250 | } |
251 | 251 | } 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 首页试试。如果连续几天都签到失败,请联系作者解决!') |
254 | 254 | if (qiandao) qiandao.textContent = '自动签到失败!请尝试手动签到!'; |
255 | 255 | } |
256 | 256 | } |
|
0 commit comments