Skip to content

Commit 6c3f9dd

Browse files
committed
优化 [自动无缝翻页] 规则
1 parent e393f0e commit 6c3f9dd

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

V2ex-Enhanced.user.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name V2EX 增强
3-
// @version 1.0.5
3+
// @version 1.0.6
44
// @author X.I.U
55
// @description 自动签到、自动无缝翻页、回到顶部(右键点击两侧空白处)、标签页伪装为 Github(摸鱼)
66
// @match *://v2ex.com/*
@@ -81,7 +81,7 @@
8181
nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]',
8282
pageElement: 'css;.cell.item',
8383
HT_insert: ['//*[@id="Main"]//div[@class="box"]//div[@class="cell"][last()]', 1],
84-
replaceE: 'css;#Main .box .cell:not(.item) > table',
84+
replaceE: 'css;#Main > .box > .cell[style]:not(.item) > table',
8585
scrollDelta: 600
8686
}
8787
},
@@ -92,8 +92,8 @@
9292
nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]',
9393
pageElement: 'css;#notifications > div',
9494
HT_insert: ['css;#notifications', 3],
95-
replaceE: 'css;#Main .box > .cell:not(.item) > table',
96-
scrollDelta: 600
95+
replaceE: 'css;#Main > .box > .cell[style] > table',
96+
scrollDelta: 1000
9797
}
9898
},
9999
replies: { // 用户回复页
@@ -103,7 +103,7 @@
103103
nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]',
104104
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]',
105105
HT_insert: ['//*[@id="Main"]//div[@class="box"]//div[@class="cell"][last()]', 1],
106-
replaceE: 'css;#Main .box .cell:not(.item) > table',
106+
replaceE: 'css;#Main > .box > .cell[style] > table',
107107
scrollDelta: 1000
108108
}
109109
},
@@ -114,7 +114,7 @@
114114
nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]',
115115
pageElement: 'css;#TopicsNode > div',
116116
HT_insert: ['css;#TopicsNode', 3],
117-
replaceE: 'css;#Main .box > .cell:not(.item) > table',
117+
replaceE: 'css;#Main > .box > .cell[style] > table',
118118
scrollDelta: 700
119119
}
120120
},
@@ -125,7 +125,7 @@
125125
nextLink: '//a[@class="page_current"]/preceding-sibling::a[1][@href]',
126126
pageElement: 'css;.cell[id^="r_"]',
127127
HT_insert: ['//div[starts-with(@id, "r_")][last()]/following-sibling::div[@class="cell"][1]', 1],
128-
replaceE: 'css;#Main .box > .cell:not(.normalUser) > table',
128+
replaceE: 'css;#Main > .box > .cell[style] > table',
129129
scrollDelta: 700
130130
}
131131
},
@@ -136,7 +136,7 @@
136136
nextLink: '//a[@class="page_current"]/preceding-sibling::a[1][@href]',
137137
pageElement: 'css;.cell[id^="r_"]',
138138
HT_insert: ['//div[starts-with(@id, "r_")][1]', 1],
139-
replaceE: 'css;#Main .box > .cell:not(.normalUser) > table',
139+
replaceE: 'css;#Main > .box > .cell[style] > table',
140140
scrollDelta: 700
141141
}
142142
},
@@ -147,7 +147,7 @@
147147
nextLink: '//div[@id="Main"]//div[@class="cell"][last()]//a[@class="page_current"]/following-sibling::a[1][@href]',
148148
pageElement: '//div[@id="Main"]//div[@class="cell"][last()]/preceding-sibling::div[1]//tr[position()>1]',
149149
HT_insert: ['//div[@id="Main"]//div[@class="cell"][last()]/preceding-sibling::div[1]//tr[last()]', 4],
150-
replaceE: 'css;#Main .box .cell[style] > table',
150+
replaceE: 'css;#Main > .box > .cell[style] > table',
151151
scrollDelta: 700
152152
}
153153
}

0 commit comments

Comments
 (0)