|
1 | 1 | // ==UserScript== |
2 | 2 | // @name V2EX 增强 |
3 | | -// @version 1.0.5 |
| 3 | +// @version 1.0.6 |
4 | 4 | // @author X.I.U |
5 | 5 | // @description 自动签到、自动无缝翻页、回到顶部(右键点击两侧空白处)、标签页伪装为 Github(摸鱼) |
6 | 6 | // @match *://v2ex.com/* |
|
81 | 81 | nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]', |
82 | 82 | pageElement: 'css;.cell.item', |
83 | 83 | 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', |
85 | 85 | scrollDelta: 600 |
86 | 86 | } |
87 | 87 | }, |
|
92 | 92 | nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]', |
93 | 93 | pageElement: 'css;#notifications > div', |
94 | 94 | 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 |
97 | 97 | } |
98 | 98 | }, |
99 | 99 | replies: { // 用户回复页 |
|
103 | 103 | nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]', |
104 | 104 | 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]', |
105 | 105 | 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', |
107 | 107 | scrollDelta: 1000 |
108 | 108 | } |
109 | 109 | }, |
|
114 | 114 | nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]', |
115 | 115 | pageElement: 'css;#TopicsNode > div', |
116 | 116 | HT_insert: ['css;#TopicsNode', 3], |
117 | | - replaceE: 'css;#Main .box > .cell:not(.item) > table', |
| 117 | + replaceE: 'css;#Main > .box > .cell[style] > table', |
118 | 118 | scrollDelta: 700 |
119 | 119 | } |
120 | 120 | }, |
|
125 | 125 | nextLink: '//a[@class="page_current"]/preceding-sibling::a[1][@href]', |
126 | 126 | pageElement: 'css;.cell[id^="r_"]', |
127 | 127 | 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', |
129 | 129 | scrollDelta: 700 |
130 | 130 | } |
131 | 131 | }, |
|
136 | 136 | nextLink: '//a[@class="page_current"]/preceding-sibling::a[1][@href]', |
137 | 137 | pageElement: 'css;.cell[id^="r_"]', |
138 | 138 | 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', |
140 | 140 | scrollDelta: 700 |
141 | 141 | } |
142 | 142 | }, |
|
147 | 147 | nextLink: '//div[@id="Main"]//div[@class="cell"][last()]//a[@class="page_current"]/following-sibling::a[1][@href]', |
148 | 148 | pageElement: '//div[@id="Main"]//div[@class="cell"][last()]/preceding-sibling::div[1]//tr[position()>1]', |
149 | 149 | 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', |
151 | 151 | scrollDelta: 700 |
152 | 152 | } |
153 | 153 | } |
|
0 commit comments