Skip to content

Commit 4bd3ef1

Browse files
committed
新增 [阿里小站] 支持
1 parent 0a27c22 commit 4bd3ef1

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

Autopage.user.js

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// ==UserScript==
22
// @name 自动无缝翻页
3-
// @version 1.3.2
3+
// @version 1.3.3
44
// @author X.I.U
5-
// @description 自动无缝翻页,目前支持:所有 Discuz!论坛、423Down、Apphot、不死鸟、小众软件、异次元软件、微当下载、异星软件空间、豆瓣电影、3DM游戏网、游侠网、游民星空、千图网、RARBG、FitGirl Repacks、AlphaCoders、PubMed...
5+
// @description 自动无缝翻页,目前支持:所有 Discuz!论坛、423Down、Apphot、不死鸟、小众软件、异次元软件、微当下载、异星软件空间、豆瓣电影、3DM游戏网、游侠网、游民星空、千图网、阿里小站、RARBG、FitGirl Repacks、AlphaCoders、PubMed...
66
// @match *://*/*
77
// @exclude *://www.423down.com/*.html
88
// @exclude *://apphot.cc/*.html
@@ -40,7 +40,8 @@
4040
'gl.ali213.net',
4141
'www.58pic.com',
4242
'rarbgprx.org',
43-
'www.yxssp.com'];
43+
'www.yxssp.com',
44+
'pan.yuankongjian.com'];
4445

4546
if (GM_getValue('menu_disable') == null){GM_setValue('menu_disable', [])};
4647
// 注册脚本菜单
@@ -410,6 +411,15 @@
410411
replaceE: 'css;.page-nav.td-pb-padding-side',
411412
scrollDelta: 900
412413
}
414+
},
415+
yuankongjian: {
416+
SiteTypeID: 28,
417+
pager: {
418+
type: 2,
419+
nextLink: 'button[title="加载更多"]',
420+
nextText: '加载更多',
421+
scrollDelta: 500
422+
}
413423
}
414424
};
415425

@@ -501,6 +511,11 @@
501511
case "rarbgprx.org":
502512
curSite = DBSite.rarbgprx;
503513
break;
514+
case "pan.yuankongjian.com":
515+
if (location.pathname.indexOf('/d/') === -1) {
516+
curSite = DBSite.yuankongjian;
517+
}
518+
break;
504519
default: // < Discuz! 论坛专用 >
505520
if (location.pathname.indexOf('.html') > -1) { // 判断是不是静态网页(.html 结尾)
506521
if (location.pathname.indexOf('forum') > -1) { // 各版块帖子列表

0 commit comments

Comments
 (0)