|
1 | 1 | // ==UserScript== |
2 | 2 | // @name 自动无缝翻页 |
3 | | -// @version 1.1.6 |
| 3 | +// @version 1.1.7 |
4 | 4 | // @author X.I.U |
5 | | -// @description 自动无缝翻页,目前支持:423Down、Apphot、不死鸟、小众软件、异次元软件、三国杀论坛、PubMed |
| 5 | +// @description 自动无缝翻页,目前支持:423Down、Apphot、不死鸟、小众软件、异次元软件、AlphaCoders、三国杀论坛、PubMed |
6 | 6 | // @match *://www.423down.com/* |
7 | 7 | // @exclude *://www.423down.com/*.html |
8 | 8 | // @match *://apphot.cc/* |
9 | 9 | // @exclude *://apphot.cc/*.html |
| 10 | +// @match *://iao.su/* |
10 | 11 | // @match *://www.appinn.com/ |
11 | 12 | // @match *://www.appinn.com/*/*/ |
12 | 13 | // @match *://www.appinn.com/?s=* |
13 | | -// @match *://pubmed.ncbi.nlm.nih.gov/?term=* |
14 | | -// @match *://club.sanguosha.com/* |
15 | 14 | // @match *://www.iplaysoft.com/* |
16 | | -// @match *://iao.su/* |
| 15 | +// @match *://*.alphacoders.com/* |
| 16 | +// @match *://club.sanguosha.com/* |
| 17 | +// @match *://pubmed.ncbi.nlm.nih.gov/?term=* |
17 | 18 | // @icon https://i.loli.net/2021/03/07/rdijeYm83pznxWq.png |
18 | 19 | // @grant GM_xmlhttpRequest |
19 | 20 | // @grant GM_registerMenuCommand |
|
141 | 142 | nextText: 'Show more', |
142 | 143 | scrollDelta: 1500 |
143 | 144 | } |
| 145 | + }, |
| 146 | + wall_alphacoders: { |
| 147 | + SiteTypeID: 11, |
| 148 | + pager: { |
| 149 | + type: 1, |
| 150 | + nextLink: '//a[@id="next_page"][@href]', |
| 151 | + pageElement: 'css;.thumb-container-big, .avatar-thumb, .thumb-element', |
| 152 | + HT_insert: ['css;.thumb-container-big:nth-last-child(1), .avatar-thumb:nth-last-child(1), .thumb-element:nth-last-child(1)', 4], |
| 153 | + replaceE: '//div[@class="hidden-xs hidden-sm"]/..', |
| 154 | + scrollDelta: 1000 |
| 155 | + } |
144 | 156 | } |
145 | 157 | }; |
146 | 158 |
|
|
152 | 164 | case "apphot.cc": |
153 | 165 | curSite = DBSite.apphot_postslist; |
154 | 166 | break; |
| 167 | + case "iao.su": |
| 168 | + curSite = DBSite.iao_su_postslist; |
| 169 | + break; |
155 | 170 | case "www.appinn.com": |
156 | 171 | curSite = DBSite.appinn_postslist; |
157 | 172 | break; |
158 | | - case "pubmed.ncbi.nlm.nih.gov": |
159 | | - curSite = DBSite.pubmed_postslist; |
| 173 | + case "www.iplaysoft.com": |
| 174 | + if(location.pathname.indexOf(".html") > -1 || location.pathname.indexOf("/p/") > -1){ // 文章内 |
| 175 | + curSite = DBSite.iplaysoft_postcomments; |
| 176 | + }else{ // 其他页面 |
| 177 | + curSite = DBSite.iplaysoft_postslist; |
| 178 | + } |
| 179 | + break; |
| 180 | + case "wall.alphacoders.com": |
| 181 | + case "avatars.alphacoders.com": |
| 182 | + case "mobile.alphacoders.com": |
| 183 | + curSite = DBSite.wall_alphacoders; |
160 | 184 | break; |
161 | 185 | case "club.sanguosha.com": |
162 | 186 | if(location.pathname.indexOf("forum") > -1){ // 各版块帖子列表 |
|
168 | 192 | curSite = DBSite.sanguosha_search; |
169 | 193 | } |
170 | 194 | break; |
171 | | - case "www.iplaysoft.com": |
172 | | - if(location.pathname.indexOf(".html") > -1 || location.pathname.indexOf("/p/") > -1){ // 文章内 |
173 | | - curSite = DBSite.iplaysoft_postcomments; |
174 | | - }else{ // 其他页面 |
175 | | - curSite = DBSite.iplaysoft_postslist; |
176 | | - } |
177 | | - break; |
178 | | - case "iao.su": |
179 | | - curSite = DBSite.iao_su_postslist; |
| 195 | + case "pubmed.ncbi.nlm.nih.gov": |
| 196 | + curSite = DBSite.pubmed_postslist; |
180 | 197 | break; |
181 | 198 | } |
182 | 199 | curSite.pageUrl = ""; // 下一页URL |
|
0 commit comments