Skip to content

Commit ffba3b7

Browse files
committed
新增 [AlphaCoders] 支持(一个壁纸网站)
1 parent 4d55f2e commit ffba3b7

1 file changed

Lines changed: 33 additions & 16 deletions

File tree

Autopage.user.js

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
// ==UserScript==
22
// @name 自动无缝翻页
3-
// @version 1.1.6
3+
// @version 1.1.7
44
// @author X.I.U
5-
// @description 自动无缝翻页,目前支持:423Down、Apphot、不死鸟、小众软件、异次元软件、三国杀论坛、PubMed
5+
// @description 自动无缝翻页,目前支持:423Down、Apphot、不死鸟、小众软件、异次元软件、AlphaCoders、三国杀论坛、PubMed
66
// @match *://www.423down.com/*
77
// @exclude *://www.423down.com/*.html
88
// @match *://apphot.cc/*
99
// @exclude *://apphot.cc/*.html
10+
// @match *://iao.su/*
1011
// @match *://www.appinn.com/
1112
// @match *://www.appinn.com/*/*/
1213
// @match *://www.appinn.com/?s=*
13-
// @match *://pubmed.ncbi.nlm.nih.gov/?term=*
14-
// @match *://club.sanguosha.com/*
1514
// @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=*
1718
// @icon https://i.loli.net/2021/03/07/rdijeYm83pznxWq.png
1819
// @grant GM_xmlhttpRequest
1920
// @grant GM_registerMenuCommand
@@ -141,6 +142,17 @@
141142
nextText: 'Show more',
142143
scrollDelta: 1500
143144
}
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+
}
144156
}
145157
};
146158

@@ -152,11 +164,23 @@
152164
case "apphot.cc":
153165
curSite = DBSite.apphot_postslist;
154166
break;
167+
case "iao.su":
168+
curSite = DBSite.iao_su_postslist;
169+
break;
155170
case "www.appinn.com":
156171
curSite = DBSite.appinn_postslist;
157172
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;
160184
break;
161185
case "club.sanguosha.com":
162186
if(location.pathname.indexOf("forum") > -1){ // 各版块帖子列表
@@ -168,15 +192,8 @@
168192
curSite = DBSite.sanguosha_search;
169193
}
170194
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;
180197
break;
181198
}
182199
curSite.pageUrl = ""; // 下一页URL

0 commit comments

Comments
 (0)