新增 [小众软件] 支持

This commit is contained in:
xiu2
2021-01-04 09:43:53 +08:00
parent 6b60328927
commit 4cab278de9
2 changed files with 21 additions and 4 deletions
+20 -3
View File
@@ -1,12 +1,15 @@
// ==UserScript==
// @name 自动无缝翻页
// @version 1.1.0
// @version 1.1.1
// @author X.I.U
// @description 自动无缝翻页,目前支持:423Down、Apphot(原烈火汉化)
// @description 自动无缝翻页,目前支持:423Down、Apphot(原烈火汉化)、小众软件
// @match *://www.423down.com/*
// @exclude *://www.423down.com/*.html
// @match *://apphot.cc/*
// @exclude *://apphot.cc/*.html
// @match *://www.appinn.com/
// @match *://www.appinn.com/*/*/
// @match *://www.appinn.com/?s=*
// @icon https://github.githubassets.com/favicon.ico
// @grant GM_xmlhttpRequest
// @grant GM_registerMenuCommand
@@ -44,13 +47,24 @@
replaceE: 'css;div.pagination',
scrollDelta: 1500
}
},
postslist_appinn: {
SiteTypeID: 3,
pager: {
nextLink: '//a[@class="next page-numbers"][@href]',
pageElement: 'css;section#latest-posts > article',
HT_insert: ['css;nav.navigation.pagination', 1],
replaceE: 'css;div.nav-links',
scrollDelta: 1500
}
}
};
// 用于脚本内部判断当前 URL 类型
let SiteType = {
POSTSLIST_423DOWN: DBSite.postslist_423down.SiteTypeID,
POSTSLIST_APPHOT: DBSite.postslist_apphot.SiteTypeID
POSTSLIST_APPHOT: DBSite.postslist_apphot.SiteTypeID,
POSTSLIST_APPINN: DBSite.postslist_appinn.SiteTypeID
};
switch (location.host) {
@@ -60,6 +74,9 @@
case "apphot.cc":
curSite = DBSite.postslist_apphot;
break;
case "www.appinn.com":
curSite = DBSite.postslist_appinn;
break;
}
curSite.pageUrl = ""; // 下一页URL
pageLoading(); // 自动无缝翻页
+1 -1
View File
@@ -19,7 +19,7 @@
| **知乎 美化** | 宽屏显示、隐藏文章开头大图、文章编辑页宽度统一... | **[「安装」](https://greasyfork.org/zh-CN/scripts/412212)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Zhihu-Beautification.user.js)** |
| **知乎 增强** | 移除登录弹窗、一键收起回答、置顶显示时间、区分问题... | **[「安装」](https://greasyfork.org/zh-CN/scripts/419081)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Zhihu-Enhanced.user.js)** |
| **Github 增强** | 高速下载 Clone、Release、Raw、Code(ZIP) 文件... | **[「安装」](https://greasyfork.org/zh-CN/scripts/412245)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/GithubEnhanced-High-Speed-Download.user.js)** |
| **自动无缝翻页 \*** | 目前支持:423Down、Apphot(原烈火汉化)... | **[「安装」](https://greasyfork.org/zh-CN/scripts/419215)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Autopage.user.js)** |
| **自动无缝翻页 \*** | 目前支持:423Down、Apphot(原烈火汉化)、小众软件... | **[「安装」](https://greasyfork.org/zh-CN/scripts/419215)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Autopage.user.js)** |
| **3DM论坛 美化** | 精简多余内容 | **[「安装」](https://greasyfork.org/zh-CN/scripts/413593)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/3dm-Beautification.user.js)** |
| **3DM论坛 增强** | 自动回复、自动无缝翻页、清理置顶帖子 | **[「安装」](https://greasyfork.org/zh-CN/scripts/412890)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/3dm-Enhanced.user.js)** |
| **蓝奏云网盘 增强 \*** | 刷新不回根目录、自动显示更多文件、自动复制分享链接... | **[「安装」](https://greasyfork.org/zh-CN/scripts/419224)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Lanzou-Enhanced.user.js)** |