From 6c3f9ddd17a1a95f405243072ad91f5632bf04f9 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 1 Apr 2021 20:16:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=97=A0=E7=BC=9D=E7=BF=BB=E9=A1=B5]=20=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- V2ex-Enhanced.user.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/V2ex-Enhanced.user.js b/V2ex-Enhanced.user.js index 4cff443..1b4a56e 100644 --- a/V2ex-Enhanced.user.js +++ b/V2ex-Enhanced.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name V2EX 增强 -// @version 1.0.5 +// @version 1.0.6 // @author X.I.U // @description 自动签到、自动无缝翻页、回到顶部(右键点击两侧空白处)、标签页伪装为 Github(摸鱼) // @match *://v2ex.com/* @@ -81,7 +81,7 @@ nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]', pageElement: 'css;.cell.item', HT_insert: ['//*[@id="Main"]//div[@class="box"]//div[@class="cell"][last()]', 1], - replaceE: 'css;#Main .box .cell:not(.item) > table', + replaceE: 'css;#Main > .box > .cell[style]:not(.item) > table', scrollDelta: 600 } }, @@ -92,8 +92,8 @@ nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]', pageElement: 'css;#notifications > div', HT_insert: ['css;#notifications', 3], - replaceE: 'css;#Main .box > .cell:not(.item) > table', - scrollDelta: 600 + replaceE: 'css;#Main > .box > .cell[style] > table', + scrollDelta: 1000 } }, replies: { // 用户回复页 @@ -103,7 +103,7 @@ nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]', pageElement: '//*[@id="Main"]//div[@class="box"]//div[@class="dock_area"] | //*[@id="Main"]//div[@class="box"]//div[@class="inner"] | //*[@id="Main"]//div[@class="box"]//div[@class="dock_area"][last()]/following-sibling::div[@class="cell"][1]', HT_insert: ['//*[@id="Main"]//div[@class="box"]//div[@class="cell"][last()]', 1], - replaceE: 'css;#Main .box .cell:not(.item) > table', + replaceE: 'css;#Main > .box > .cell[style] > table', scrollDelta: 1000 } }, @@ -114,7 +114,7 @@ nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]', pageElement: 'css;#TopicsNode > div', HT_insert: ['css;#TopicsNode', 3], - replaceE: 'css;#Main .box > .cell:not(.item) > table', + replaceE: 'css;#Main > .box > .cell[style] > table', scrollDelta: 700 } }, @@ -125,7 +125,7 @@ nextLink: '//a[@class="page_current"]/preceding-sibling::a[1][@href]', pageElement: 'css;.cell[id^="r_"]', HT_insert: ['//div[starts-with(@id, "r_")][last()]/following-sibling::div[@class="cell"][1]', 1], - replaceE: 'css;#Main .box > .cell:not(.normalUser) > table', + replaceE: 'css;#Main > .box > .cell[style] > table', scrollDelta: 700 } }, @@ -136,7 +136,7 @@ nextLink: '//a[@class="page_current"]/preceding-sibling::a[1][@href]', pageElement: 'css;.cell[id^="r_"]', HT_insert: ['//div[starts-with(@id, "r_")][1]', 1], - replaceE: 'css;#Main .box > .cell:not(.normalUser) > table', + replaceE: 'css;#Main > .box > .cell[style] > table', scrollDelta: 700 } }, @@ -147,7 +147,7 @@ nextLink: '//div[@id="Main"]//div[@class="cell"][last()]//a[@class="page_current"]/following-sibling::a[1][@href]', pageElement: '//div[@id="Main"]//div[@class="cell"][last()]/preceding-sibling::div[1]//tr[position()>1]', HT_insert: ['//div[@id="Main"]//div[@class="cell"][last()]/preceding-sibling::div[1]//tr[last()]', 4], - replaceE: 'css;#Main .box .cell[style] > table', + replaceE: 'css;#Main > .box > .cell[style] > table', scrollDelta: 700 } }