From 738a7fbd503c90089215a8645a79a1602da204c9 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sun, 13 Feb 2022 14:32:08 +0800
Subject: [PATCH 0001/1432] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[NexusMods]=20?=
=?UTF-8?q?=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 677640164..92326173a 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -3,7 +3,7 @@
// @name:en AutoPager
// @name:zh-CN 自动无缝翻页
// @name:zh-TW 自動無縫翻頁
-// @version 4.6.9
+// @version 4.7.0
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流,追求小而精),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、煎蛋网、糗事百科、龙的天空、起点中文、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @description:en Seamlessly stitch next page content (waterfall)
@@ -2031,6 +2031,7 @@ function: {
}, // 游民星空 - 攻略
nexusmods: {
host: 'www.nexusmods.com',
+ functionS: function() {locationC = true; if (!(lp == '/' || indexOF(/\/mods\/\d+/))) {curSite = DBSite.nexusmods;}},
history: false,
pager: {
type: 1,
@@ -6233,6 +6234,7 @@ function: {
if (getCSS('.nexus-ui-blocker')) return
let modList;
if (indexOF('/news')) {modList = RH_NewsTabContent;} else {modList = RH_ModList;}
+ if (!modList) return
let out_items = JSON.stringify(modList.out_items).replace(/{|}|"/g,''),
nextNum = getXpath('//div[contains(@class, "pagenav")][1]//a[contains(@class, "page-selected")]/parent::li/following-sibling::li/a'),
categories = modList.out_items.categories, categoriesUrl = '';
From cbf964475c32f9b5c7f410423765b8e89dd61173 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sun, 13 Feb 2022 21:36:42 +0800
Subject: [PATCH 0002/1432] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[ScienceAlert]?=
=?UTF-8?q?=E3=80=81[=E6=96=B0=E4=B8=9C=E6=96=B9=E5=9C=A8=E7=BA=BF]?=
=?UTF-8?q?=E3=80=81[188=E6=BC=AB=E7=94=BB=E7=BD=91]=20=E6=94=AF=E6=8C=81;?=
=?UTF-8?q?=20=E6=9B=B4=E6=96=B0=20[=E7=88=B1=E6=BC=AB=E7=94=BB]=20?=
=?UTF-8?q?=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 76 ++++++++++++++++++++++++++++++++++++------------
1 file changed, 57 insertions(+), 19 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 92326173a..fded21f71 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -3,7 +3,7 @@
// @name:en AutoPager
// @name:zh-CN 自动无缝翻页
// @name:zh-TW 自動無縫翻頁
-// @version 4.7.0
+// @version 4.7.1
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流,追求小而精),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、煎蛋网、糗事百科、龙的天空、起点中文、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @description:en Seamlessly stitch next page content (waterfall)
@@ -539,7 +539,7 @@ function: {
pageE: 'css;#search-result > *, style',
insertP: ['css;#search-result', 3],
replaceE: 'css;.pager',
- scrollD: 2000
+ scrollD: 1500
}
}, // Yandex 搜索
yandex_video: {
@@ -3050,17 +3050,17 @@ function: {
}
}, // 漫画皮 - 分类页
imanhuaw: {
- host: ['www.imanhuaw.net', 'www.imanhuaw.com'],
+ host: ['www.imanhuaw.net', 'www.imanhuaw.com', 'www.ccshwy.com'],
functionS: function() {
if (getCSS('.mh-search-result')) {
curSite = DBSite.imanhuaw_list;
} else if (getCSS('a#zhankai')) {
getCSS('a#zhankai').click();
- } else if (indexOF(/\/imanhua\/.+\/\d{3,}\.html/)) {
+ } else if (indexOF(/\/\d{3,}\.html/)) {
curSite = DBSite.imanhuaw; imanhuaw_init();
}
},
- style: '#sider-left, #sider-right, .main-left, .main-right, .w996.tc, .title > span {display: none !important;}',
+ style: '#sider-left, #sider-right, .main-left, .main-right, .w996.tc, .title > span {display: none !important;} #qTcms_Pic_middle img {max-width: 110%;height: auto;}',
pager: {
type: 4,
nextL: imanhuaw_nextL,
@@ -3070,7 +3070,7 @@ function: {
interval: 2000,
scrollD: 3000
}
- }, // 爱漫画
+ }, // 爱漫画 + 188漫画网
imanhuaw_list: {
pager: {
type: 1,
@@ -5011,6 +5011,15 @@ function: {
scrollD: 1500
}
}, // 36氪 - 手机版
+ sciencealert: {
+ host: 'www.sciencealert.com',
+ pager: {
+ type: 2,
+ nextL: 'css;.load-more',
+ nextTextOf: 'LOAD MORE',
+ scrollD: 2000
+ }
+ }, // ScienceAlert
zhutix: {
host: 'zhutix.com',
functionS: function() {if (getCSS('#post-list')) {
@@ -5249,6 +5258,17 @@ function: {
scrollD: 1000
}
}, // 如意了教育 - 试卷
+ koolearn: {
+ host: 'cet4.koolearn.com',
+ pager: {
+ type: 1,
+ nextL: 'id("page")/a[text()="下一页"]',
+ pageE: 'css;ul.xqy_entry_list > li,.xqy_core_text > p:not([style="text-align:center"])',
+ insertP: ['css;ul.xqy_entry_list,.xqy_core_text', 3],
+ replaceE: 'css;#page',
+ scrollD: 2500
+ }
+ }, // 新东方在线
che168: {
host: 'www.che168.com',
functionS: function() {
@@ -6508,11 +6528,35 @@ function: {
}
+ // [爱漫画] 获取全部图片
+ function imanhuaw_getIMG() {
+ let _img = '', _imgUrl;
+ for (let one of base64_decode(qTcms_S_m_murl_e).split("$qingtiandy$")) {
+ _imgUrl = one;
+ if (one.substring(0,1) == '/') {
+ _imgUrl = qTcms_m_weburl + _imgUrl;
+ } else {
+ if (qTcms_Pic_m_if != '2') {
+ one = one.replace(/\?/gi, 'a1a1');
+ one = one.replace(/&/gi, 'b1b1');
+ one = one.replace(/%/gi, 'c1c1');
+ let m_httpurl = '';
+ if (typeof(qTcms_S_m_mhttpurl) != 'undefined') m_httpurl = base64_decode(qTcms_S_m_mhttpurl);
+ if (location.hostname == 'www.ccshwy.com') qTcms_m_indexurl = 'http://h.ccshwy.com/';
+ _imgUrl = qTcms_m_indexurl + 'statics/pic/?p=' + escape(one) + '&picid=' + qTcms_S_m_id + '&m_httpurl=' + escape(m_httpurl);
+ } else {
+ _imgUrl = _imgUrl.replace('http:', '') ;
+ _imgUrl = _imgUrl.replace('https:', '');
+ }
+ }
+ _img += `
`;
+ }
+ return _img;
+ }
// [爱漫画] 初始化(调整本话其余图片)
function imanhuaw_init() {
- let _img = '';
- for (let one of base64_decode(qTcms_S_m_murl_e).split("$qingtiandy$")) {_img += `
`;}
- getOne(curSite.pager.insertP[0]).outerHTML = _img;
+ getOne(curSite.pager.insertP[0]).outerHTML = imanhuaw_getIMG();
+ document.oncontextmenu = function(){}
}
// [爱漫画] 获取下一页地址
function imanhuaw_nextL() {
@@ -6527,16 +6571,10 @@ function: {
if (!pageElems) return
// 插入并运行