优化 [自动无缝翻页] 规则

This commit is contained in:
xiu2
2021-04-01 20:16:10 +08:00
parent e393f0ebf8
commit 6c3f9ddd17
+9 -9
View File
@@ -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
}
}