From 09d5a742332f623312756b54afb485fe458aad2f Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Thu, 7 Apr 2022 09:18:27 +0800
Subject: [PATCH 0001/1154] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E7=BB=85?=
=?UTF-8?q?=E5=A3=AB=E4=BB=93=E5=BA=93]=20=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
other/Autopage/rules.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json
index 5f7096ff5..747f78e6b 100644
--- a/other/Autopage/rules.json
+++ b/other/Autopage/rules.json
@@ -5050,7 +5050,7 @@
},
"绅士仓库": {
"host": "/^cangku\\./",
- "url": "if (document.title.indexOf('绅士') == -1){return}; fun.isUrlC(); setTimeout(`document.querySelectorAll('#header, .simple-navbar').forEach(function (o) {o.innerHTML = o.innerHTML; console.log(o);});`, 1500); return (fun.lp() == '/' || fun.indexOF('/category/') || fun.indexOF('/user/'))",
+ "url": "if (document.title.indexOf('绅士') == -1){return}; fun.isUrlC(); setTimeout(`let a='.mr-auto,.navbar-brand.active,.simple-navbar';if(location.pathname.indexOf('/search/')!=-1){a='.mr-auto,.navbar-brand.active'};document.querySelectorAll(a).forEach(function (o) {o.innerHTML = o.innerHTML;})`, 1500); return (fun.lp() == '/' || fun.indexOF('/category/') || fun.indexOF('/user/'))",
"history": true,
"pager": {
"type": 6,
From 19fa99352c8b62021ad363c09852adb784c19fc1 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Thu, 7 Apr 2022 10:39:08 +0800
Subject: [PATCH 0002/1154] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E6=9B=B4?=
=?UTF-8?q?=E6=96=B0=E5=A4=96=E7=BD=AE=E7=BF=BB=E9=A1=B5=E8=A7=84=E5=88=99?=
=?UTF-8?q?]=20=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 30 ++++++++++++++++++++++--------
1 file changed, 22 insertions(+), 8 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 3e0236583..36494ea8d 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -3,7 +3,7 @@
// @name:zh-CN 自动无缝翻页
// @name:zh-TW 自動無縫翻頁
// @name:en AutoPager
-// @version 5.6.5
+// @version 5.6.6
// @author X.I.U
// @description ⭐无缝衔接下一页内容到网页底部(类似瀑布流)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP...」论坛】【百度、谷歌(Google)、必应(Bing)、搜狗、微信、360、Yahoo、Yandex 等搜索引擎...】、贴吧、豆瓣、知乎、微博、NGA、V2EX、煎蛋网、龙的天空、起点中文、千图网、千库网、Pixabay、Pixiv、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、RuTracker、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、小众软件、【动漫狂、漫画猫、漫画屋、漫画 DB、动漫之家、拷贝漫画、HiComic、Mangabz、Xmanhua 等漫画网站...】、PubMed、Z-Library、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @description:zh-TW ⭐無縫銜接下一頁內容到網頁底部(類似瀑布流)⭐,支持各論壇、社交、遊戲、漫畫、小說、學術、搜索引擎(Google、Bing、Yahoo...) 等網站~
@@ -1544,7 +1544,13 @@ function: {
'https://cdn.staticaly.com/gh/XIU2/UserScript/master/other/Autopage/rules.json',
//'https://cdn.jsdelivr.net/gh/XIU2/UserScript/other/Autopage/rules.json',
'https://gcore.jsdelivr.net/gh/XIU2/UserScript/other/Autopage/rules.json',
- 'https://fastly.jsdelivr.net/gh/XIU2/UserScript/other/Autopage/rules.json']
+ 'https://fastly.jsdelivr.net/gh/XIU2/UserScript/other/Autopage/rules.json'],
+ urlArr2 = [//'https://userscript.gh2233.ml/other/Autopage/rules.json',
+ 'https://userscript.xiu2.xyz/other/Autopage/rules.json',
+ 'https://raw.iqiq.io/XIU2/UserScript/master/other/Autopage/rules.json',
+ 'https://hk1.monika.love/XIU2/UserScript/master/other/Autopage/rules.json',
+ 'https://raw.fastgit.org/XIU2/UserScript/master/other/Autopage/rules.json',
+ 'https://ghproxy.fsofso.com/https://github.com/XIU2/UserScript/blob/master/other/Autopage/rules.json']
if (update) { // 手动更新(或安装后首次更新)
GM_notification({text: '🔄 更新外置翻页规则中,请勿操作网页...', timeout: 3000});
@@ -1553,9 +1559,8 @@ function: {
getRulesUrl_();
}
- function getRulesUrl_(n = false) {
- let url;
- if (n) {url = 'https://userscript.xiu2.xyz/other/Autopage/rules.json'} else {url = urlArr[Math.floor(Math.random()*urlArr.length)];}
+ function getRulesUrl_(n = false, url) {
+ if (n) {url = urlArr2[Math.floor(Math.random()*urlArr2.length)];} else {url = urlArr[Math.floor(Math.random()*urlArr.length)];}
GM_xmlhttpRequest({
url: url,
method: 'GET',
@@ -1588,11 +1593,11 @@ function: {
},
onerror: function (response) {
console.log('URL:' + url, response)
- GM_notification({text: '❌ 错误!更新失败,请联系作者解决...', timeout: 5000});
+ GM_notification({text: '❌ 错误!更新失败,请几分钟后重试...', timeout: 5000});
},
ontimeout: function (response) {
console.log('URL:' + url, response)
- GM_notification({text: '❌ 超时!更新失败,请联系作者解决...', timeout: 5000});
+ GM_notification({text: '❌ 超时!更新失败,请几分钟后重试...', timeout: 5000});
}
})
}
@@ -1616,7 +1621,9 @@ function: {
// 左键双击网页空白处暂停翻页
pausePageEvent();
// 强制新标签页打开链接
- if (curSite.blank != undefined || curSite.forceTarget != undefined) forceTarget();
+ if (curSite.blank != undefined) forceTarget();
+ // 初始化事件
+ //if (curSite.initE != undefined) initEvent();
// 对于使用 pjax 技术的网站,需要监听 URL 变化来重新判断翻页规则
if (urlC) {
@@ -1635,6 +1642,8 @@ function: {
nowLocation = location.href; curSite = {SiteTypeID: 0}; pageNum.now = 1; // 重置规则+页码
registerMenuCommand(); // 重新判断规则
//console.log(curSite);
+ if (curSite.blank != undefined) forceTarget(); // 强制新标签页打开链接
+ //if (curSite.initE != undefined) initEvent(); // 初始化事件
if (curSite.style) {insStyle(curSite.style)} // 插入 Style CSS 样式
// 帖子内自动翻页判断
if (!GM_getValue('menu_thread')) {
@@ -3308,6 +3317,11 @@ function: {
});
}
}
+ // 初始化事件
+ /*function initEvent() {
+ if (curSite.initE[1] == undefined) curSite.initE[1] = 500;
+ setTimeout(function(){getAllCSS(curSite.initE[0]).forEach(function (o) {o.innerHTML = o.innerHTML;});}, curSite.initE[1])
+ }*/
// 判断元素是否隐藏(隐藏返回 true)
function isHidden(el){
return (el.offsetParent === null);
From 50ec19d0e9b40f650594c230ecc0e9be48ad8a87 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Thu, 7 Apr 2022 17:11:23 +0800
Subject: [PATCH 0003/1154] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E8=B1=86?=
=?UTF-8?q?=E7=93=A3=20-=20=E5=B9=BF=E6=92=AD]=E3=80=81[=E7=AD=94=E9=A2=98?=
=?UTF-8?q?=E6=97=A0=E5=BF=A7]=E3=80=81[FC2=20=E7=94=B5=E5=AD=90=E5=B8=82?=
=?UTF-8?q?=E5=9C=BA]=20=E6=94=AF=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
other/Autopage/rules.json | 38 +++++++++++++++++++++++++++++++++++---
1 file changed, 35 insertions(+), 3 deletions(-)
diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json
index 747f78e6b..d4ee6eea0 100644
--- a/other/Autopage/rules.json
+++ b/other/Autopage/rules.json
@@ -352,12 +352,23 @@
"replaceE": ".paginator"
}
},
- "豆瓣 - 片单/标签/小组讨论精选": {
+ "豆瓣 - 广播": {
"host": "www.douban.com",
- "url": "/^\\/((doulist|tag)\\/|group\\/explore)/",
+ "url": "return (fun.indexOF(/^\\/people\\/\\d+\\/status/) && (!fun.indexOF('tab=','s') || fun.indexOF('tab=comment','s')))",
+ "pager": {
+ "type": 6,
+ "nextL": "a.next",
+ "pageE": ".comment-list-wrapper, .list",
+ "replaceE": ".paginator",
+ "loadTime": 1000
+ }
+ },
+ "豆瓣 - 片单/标签/小组讨论精选/广播": {
+ "host": "www.douban.com",
+ "url": "return (fun.indexOF(/^\\/(doulist|tag)\\//) || fun.lp() == '/group/explore' || (fun.indexOF(/^\\/people\\/\\d+\\/status/) && fun.indexOF('tab=','s') && !fun.indexOF('tab=collect','s')))",
"pager": {
"nextL": "link[rel='next']",
- "pageE": ".doulist-item, .article>.mod:not([id='doulist-info']), .channel-item",
+ "pageE": ".doulist-item, .article>.mod:not([id='doulist-info']), .channel-item, .list",
"replaceE": ".paginator"
}
},
@@ -4409,6 +4420,16 @@
"scrollD": 1800
}
},
+ "答题无忧": {
+ "host": "www.dati56.com",
+ "url": "/^\\/post\\//",
+ "pager": {
+ "nextL": "//a[@class='cur']/parent::li/following-sibling::li/a",
+ "pageE": ".content>p",
+ "replaceE": ".ipage",
+ "scrollD": 3000
+ }
+ },
"立创开源硬件平台": {
"host": "www.oshwhub.com",
"url": "/^\\/explore/",
@@ -4879,6 +4900,17 @@
"scrollD": 2500
}
},
+ "FC2 电子市场": {
+ "host": "adult.contents.fc2.com",
+ "url": "/^\\/search\\//",
+ "blank": 3,
+ "pager": {
+ "nextL": "span.items+a[data-link-name='pager']",
+ "pageE": ".c-cntCard-110-f",
+ "replaceE": ".c-pager-101",
+ "scrollD": 2000
+ }
+ },
"hanime1": {
"host": "hanime1.me",
"url": "return (fun.lp() == '/search')",
From 1558b3bea5e0d45ec7ed20afaad87be5c9f0c5a0 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Thu, 7 Apr 2022 18:27:49 +0800
Subject: [PATCH 0004/1154] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E8=87=AA?=
=?UTF-8?q?=E5=AE=9A=E4=B9=89=E7=BF=BB=E9=A1=B5=E8=A7=84=E5=88=99]=20?=
=?UTF-8?q?=E4=B8=AD=E6=98=BE=E7=A4=BA=E8=84=9A=E6=9C=AC=E7=9B=AE=E5=89=8D?=
=?UTF-8?q?=E6=89=80=E6=9C=89=E8=A7=84=E5=88=99(=E6=96=B9=E4=BE=BF?=
=?UTF-8?q?=E6=9F=A5=E9=98=85);=20=E4=BC=98=E5=8C=96=20=E8=A7=84=E5=88=99?=
=?UTF-8?q?=E5=90=88=E5=B9=B6=E6=96=B9=E5=BC=8F(=E8=87=AA=E5=AE=9A?=
=?UTF-8?q?=E4=B9=89=E8=A7=84=E5=88=99=E5=B0=86=E8=A6=86=E7=9B=96=E5=90=8C?=
=?UTF-8?q?=E5=90=8D=E7=9A=84=E5=A4=96=E7=BD=AE=E8=A7=84=E5=88=99)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 33 ++++++++++++++++++---------------
1 file changed, 18 insertions(+), 15 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 36494ea8d..a0635bc42 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -3,7 +3,7 @@
// @name:zh-CN 自动无缝翻页
// @name:zh-TW 自動無縫翻頁
// @name:en AutoPager
-// @version 5.6.6
+// @version 5.6.7
// @author X.I.U
// @description ⭐无缝衔接下一页内容到网页底部(类似瀑布流)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP...」论坛】【百度、谷歌(Google)、必应(Bing)、搜狗、微信、360、Yahoo、Yandex 等搜索引擎...】、贴吧、豆瓣、知乎、微博、NGA、V2EX、煎蛋网、龙的天空、起点中文、千图网、千库网、Pixabay、Pixiv、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、RuTracker、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、小众软件、【动漫狂、漫画猫、漫画屋、漫画 DB、动漫之家、拷贝漫画、HiComic、Mangabz、Xmanhua 等漫画网站...】、PubMed、Z-Library、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @description:zh-TW ⭐無縫銜接下一頁內容到網頁底部(類似瀑布流)⭐,支持各論壇、社交、遊戲、漫畫、小說、學術、搜索引擎(Google、Bing、Yahoo...) 等網站~
@@ -1520,7 +1520,15 @@ function: {
} // 国家自然科学基金
};
// 合并 自定义规则、外置规则、内置规则
- DBSite = Object.assign(GM_getValue('menu_customRules', {}), GM_getValue('menu_rules', {}), DBSite)
+ if (Object.keys(GM_getValue('menu_customRules', {})).length === 0) {
+ DBSite = Object.assign(GM_getValue('menu_customRules', {}), GM_getValue('menu_rules', {}), DBSite)
+ } else { // 自定义规则 覆盖 同名的外置规则
+ let a = GM_getValue('menu_customRules', {}), a1 = Object.keys(a),
+ b = GM_getValue('menu_rules', {}), b1 = Object.keys(b)
+ for (let i = 0; i < a1.length; i++) {if(b1.indexOf(a1[i]) != -1) {delete b[a1[i]]};}
+ DBSite = Object.assign(a, b, DBSite)
+ }
+
// 生成 SiteTypeID
setSiteTypeID();
//console.log(DBSite)
@@ -2858,21 +2866,14 @@ function: {
// 加载完成后才继续
iframe.onload = function() {
- //iframe.contentWindow.scrollTo(0, 999999); // 滚动到底部,以触发网页的滚动条相关加载事件
- //iframe.contentWindow.scrollTo({top: 9999999, behavior: 'smooth'});
- if (!curSite.pager.loadTime) curSite.pager.loadTime = 100; // 默认 100ms
- //console.log(curSite.pager.loadTime, curSite.pager.loadTime/30)
- //console.time('sort');
+ if (!curSite.pager.loadTime) curSite.pager.loadTime = 300; // 默认 300ms
let time1 = 0 ,time2 = setInterval(function(){
let scrollHeight = (iframe.contentWindow.document.documentElement.scrollHeight || iframe.contentWindow.document.body.scrollHeight)/10
iframe.contentWindow.scrollTo(0, 999999);
iframe.contentWindow.scrollTo(0, scrollHeight*time1);
- //console.log(time1, iframe.contentWindow.document.documentElement.scrollHeight || iframe.contentWindow.document.body.scrollHeight)
if (++time1 == 10) {
- //console.timeEnd('sort');
clearInterval(time2);
processElems(iframe.contentWindow.document); // 插入/替换元素等
- //console.log(iframe.contentWindow.document.documentElement.scrollHeight || iframe.contentWindow.document.body.scrollHeight)
pausePage = true; // 恢复翻页
}
}, curSite.pager.loadTime/10)
@@ -3415,8 +3416,7 @@ function: {
if (customRules == '{}') customRules = '{\n\t\n}'; // 引导用户插入位置
let _html = `
# 自定义翻页规则(优先级最高,但前提是 "规则名" 不能重复)-【将规则插入默认的 { } 中间】
-
-「 点击展开 查看示例 」(为了避免需要的时候还要找,我干脆把常用规则都一股脑塞进去了)
+「 点击展开 查看规则示例 」(为了避免需要的时候还要找,我干脆把常用规则都一股脑塞进去了)
- 翻页规则为 JSON 格式,因此大家需要多少了解一点 JSON 的基本格式(主要就是逗号、转义、双引号等)。
- 具体的翻页规则说明、示例,为了方便更新及补充,我都写到 Github 里面了。
@@ -3435,7 +3435,7 @@ function: {
"nextL": "xxxx",
"pageE": "xxxx",
"replaceE": "xxxx",
- "scrollD": 1000
+ "scrollD": 1500
}
},
"bbb": {
@@ -3477,8 +3477,11 @@ function: {
}
}
}
-
-
+
+
「 点击展开 查看所有规则 」(可 Ctrl+F 搜索规则名、域名等信息来寻找,规则顺序为:自定义、外置、内置)
+
+${JSON.stringify(DBSite, null, '\t')}
+
From 58f5610d73a8e9d9dbf9ae85521fc710454ec113 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Thu, 7 Apr 2022 20:00:05 +0800
Subject: [PATCH 0005/1154] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E8=B1=86?=
=?UTF-8?q?=E7=93=A3=20-=20=E5=B9=BF=E6=92=AD]=20=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
other/Autopage/rules.json | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json
index d4ee6eea0..207f2922b 100644
--- a/other/Autopage/rules.json
+++ b/other/Autopage/rules.json
@@ -354,10 +354,10 @@
},
"豆瓣 - 广播": {
"host": "www.douban.com",
- "url": "return (fun.indexOF(/^\\/people\\/\\d+\\/status/) && (!fun.indexOF('tab=','s') || fun.indexOF('tab=comment','s')))",
+ "url": "return (fun.indexOF(/^\\/people\\/.+\\/status/) && (!fun.indexOF('tab=','s') || fun.indexOF('tab=comment','s')))",
"pager": {
"type": 6,
- "nextL": "a.next",
+ "nextL": "js; let a=fun.getCSS('a.next');if(a && a.href){return a.href.replace('#comments','')}",
"pageE": ".comment-list-wrapper, .list",
"replaceE": ".paginator",
"loadTime": 1000
@@ -365,7 +365,7 @@
},
"豆瓣 - 片单/标签/小组讨论精选/广播": {
"host": "www.douban.com",
- "url": "return (fun.indexOF(/^\\/(doulist|tag)\\//) || fun.lp() == '/group/explore' || (fun.indexOF(/^\\/people\\/\\d+\\/status/) && fun.indexOF('tab=','s') && !fun.indexOF('tab=collect','s')))",
+ "url": "return (fun.indexOF(/^\\/(doulist|tag)\\//) || fun.lp() == '/group/explore' || (fun.indexOF(/^\\/people\\/.+\\/status/) && fun.indexOF('tab=','s') && !fun.indexOF('tab=collect','s')))",
"pager": {
"nextL": "link[rel='next']",
"pageE": ".doulist-item, .article>.mod:not([id='doulist-info']), .channel-item, .list",
From ff2ee9a2145eb02b9771276e97b765d2be6e2ced Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Thu, 7 Apr 2022 20:11:59 +0800
Subject: [PATCH 0006/1154] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E8=B1=86?=
=?UTF-8?q?=E7=93=A3=20-=20=E5=B9=BF=E6=92=AD]=20=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
other/Autopage/rules.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json
index 207f2922b..9600e37b7 100644
--- a/other/Autopage/rules.json
+++ b/other/Autopage/rules.json
@@ -357,7 +357,7 @@
"url": "return (fun.indexOF(/^\\/people\\/.+\\/status/) && (!fun.indexOF('tab=','s') || fun.indexOF('tab=comment','s')))",
"pager": {
"type": 6,
- "nextL": "js; let a=fun.getCSS('a.next');if(a && a.href){return a.href.replace('#comments','')}",
+ "nextL": "js; let a=fun.getCSS('a.next');if(a && a.href){return a.href.replace(/#.+$/,'')}",
"pageE": ".comment-list-wrapper, .list",
"replaceE": ".paginator",
"loadTime": 1000
From 277c072d9692baf041efabf69fba39ed88c08e64 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Fri, 8 Apr 2022 09:29:11 +0800
Subject: [PATCH 0007/1154] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E8=B1=86?=
=?UTF-8?q?=E7=93=A3=20-=20=E6=97=A5=E8=AE=B0]=E3=80=81[HDSay=20=E9=AB=98?=
=?UTF-8?q?=E6=B8=85=E4=B9=90=E5=9B=AD]=20=E6=94=AF=E6=8C=81;=20=E4=BC=98?=
=?UTF-8?q?=E5=8C=96=20[E-Hentai-g]=20=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
other/Autopage/rules.json | 233 ++++++++++++++++++++------------------
1 file changed, 120 insertions(+), 113 deletions(-)
diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json
index 9600e37b7..79829ec08 100644
--- a/other/Autopage/rules.json
+++ b/other/Autopage/rules.json
@@ -352,20 +352,20 @@
"replaceE": ".paginator"
}
},
- "豆瓣 - 广播": {
+ "豆瓣 - 广播/日记": {
"host": "www.douban.com",
- "url": "return (fun.indexOF(/^\\/people\\/.+\\/status/) && (!fun.indexOF('tab=','s') || fun.indexOF('tab=comment','s')))",
+ "url": "return ((fun.indexOF(/^\\/people\\/.+\\/status/) && (!fun.indexOF('tab=','s') || fun.indexOF('tab=comment','s'))) || (fun.indexOF(/^\\/note\\/\\d+\\//) && !fun.indexOF('type=','s')))",
"pager": {
"type": 6,
"nextL": "js; let a=fun.getCSS('a.next');if(a && a.href){return a.href.replace(/#.+$/,'')}",
- "pageE": ".comment-list-wrapper, .list",
+ "pageE": ".comment-list-wrapper",
"replaceE": ".paginator",
"loadTime": 1000
}
},
- "豆瓣 - 片单/标签/小组讨论精选/广播": {
+ "豆瓣 - 片单/标签/小组讨论精选/广播/日记": {
"host": "www.douban.com",
- "url": "return (fun.indexOF(/^\\/(doulist|tag)\\//) || fun.lp() == '/group/explore' || (fun.indexOF(/^\\/people\\/.+\\/status/) && fun.indexOF('tab=','s') && !fun.indexOF('tab=collect','s')))",
+ "url": "return (fun.indexOF(/^\\/(doulist|tag)\\//) || fun.lp() == '/group/explore' || ((fun.indexOF(/^\\/people\\/.+\\/status/) && fun.indexOF('tab=','s') && !fun.indexOF('tab=collect','s'))) || (fun.indexOF(/^\\/note\\/\\d+\\//) && fun.indexOF('type=','s')))",
"pager": {
"nextL": "link[rel='next']",
"pageE": ".doulist-item, .article>.mod:not([id='doulist-info']), .channel-item, .list",
@@ -1010,6 +1010,77 @@
"replaceE": ".Pager"
}
},
+ "CADTutor - 列表页": {
+ "host": "www.cadtutor.net",
+ "url": "/\\/forum\\/forum\\//",
+ "pager": {
+ "nextL": "a[rel='next']",
+ "pageE": "ol.ipsDataList>li:not([data-rowid])~li",
+ "replaceE": "ul.ipsPagination",
+ "scrollD": 2000
+ }
+ },
+ "CADTutor - 帖子内": {
+ "host": "www.cadtutor.net",
+ "url": "/\\/forum\\/topic\\//",
+ "thread": true,
+ "pager": {
+ "nextL": "a[rel='next']",
+ "pageE": "#elPostFeed>form>*:not(input):not(.after-first-post)",
+ "replaceE": "ul.ipsPagination",
+ "scrollD": 2000
+ }
+ },
+ "CADTutor - 搜索页": {
+ "host": "www.cadtutor.net",
+ "url": "/\\/forum\\/search\\//",
+ "pager": {
+ "nextL": "a[rel='next']",
+ "pageE": "ol.ipsStream>li",
+ "replaceE": "ul.ipsPagination",
+ "scrollD": 2000
+ }
+ },
+ "TheSwamp - 列表页": {
+ "host": "www.theswamp.org",
+ "url": "/board=/",
+ "pager": {
+ "nextL": ".pagelinks>strong+a",
+ "pageE": "#messageindex tbody>tr:not([class])",
+ "replaceE": ".pagelinks",
+ "scrollD": 2000
+ }
+ },
+ "TheSwamp - 帖子内": {
+ "host": "www.theswamp.org",
+ "url": "/topic=/",
+ "thread": true,
+ "pager": {
+ "nextL": ".pagelinks>strong+a",
+ "pageE": "#forumposts form>*",
+ "replaceE": ".pagelinks",
+ "scrollD": 2000
+ }
+ },
+ "Ventoy 论坛": {
+ "host": "forums.ventoy.net",
+ "url": "/^\\/(forumdisplay|search)\\.php/",
+ "pager": {
+ "nextL": ".pagination_next",
+ "pageE": ".tborder>tbody>tr.inline_row",
+ "replaceE": ".pagination"
+ }
+ },
+ "Ventoy 论坛 - 帖子内": {
+ "host": "forums.ventoy.net",
+ "url": "/^\\/showthread\\.php/",
+ "thread": true,
+ "pager": {
+ "nextL": ".pagination:not(#breadcrumb_multipage_popup) .pagination_next",
+ "pageE": "#posts>*",
+ "replaceE": ".pagination:not(#breadcrumb_multipage_popup)"
+ }
+ },
"Pixiv - 分类页": {
"host": "www.pixiv.net",
"url": "fun.isUrlC(); if (fun.isMobile()) {return false}; if (fun.lp() == '/') {fun.blank();} else if (fun.indexOF('/tags/')) {return true;} else if (fun.indexOF('/artworks/')) {setTimeout(function(){fun.getXpath('//button[contains(string(), \"查看全部\") or contains(string(), \"See all\") or contains(string(), \"すべて見る\") or contains(string(), \"모두 보기\")]').click();}, 3000)}",
@@ -2400,6 +2471,16 @@
"scrollD": 2000
}
},
+ "HDSay 高清乐园": {
+ "host": "www.hdsay.net",
+ "url": "/^\\/forum\\/plate/",
+ "blank": 3,
+ "pager": {
+ "nextL": "a.current+a.item",
+ "pageE": "//tr[@class='row-split'][2]/following-sibling::tr",
+ "replaceE": ".hpaging"
+ }
+ },
"A4k 字幕网": {
"host": "www.a4k.net",
"url": "return (!fun.indexOF('/subtitle/'))",
@@ -4272,14 +4353,6 @@
"scrollD": 1000
}
},
- "古诗文网": {
- "host": ["www.gushiwen.cn","so.gushiwen.cn","m.gushiwen.cn"],
- "pager": {
- "nextL": "a.amore",
- "pageE": ".left .sons:not([id]), .sonspic",
- "replaceE": ".pagesright"
- }
- },
"彼岸图网": {
"host": "pic.netbian.com",
"style": "li.nextpage {display: none !important;} .alist>ul {height: auto !important;} .alist>ul>li {position: static !important; float: left !important; height: 550px !important;}",
@@ -4381,6 +4454,27 @@
"scrollD": 1800
}
},
+ "立创开源硬件平台": {
+ "host": "www.oshwhub.com",
+ "url": "/^\\/explore/",
+ "pager": {
+ "nextL": "a.current+a",
+ "pageE": ".each-project",
+ "replaceE": ".page",
+ "scriptT": 0,
+ "scrollD": 1200
+ }
+ },
+ "资本市场电子化信息披露平台": {
+ "host": "eid.csrc.gov.cn",
+ "url": "/\\/\\d+\\/index/",
+ "pager": {
+ "nextL": "js; if (fun.getCSS('li.on+li:not(.click)>a') == null) {return}; if (fun.indexOF('_f.html')) {fun.getCSS('#channelFilterForm').action = `index_${fun.getCSS('li.on+li:not(.click)>a').textContent}_f.html`; return fun.getNextF('#channelFilterForm');} else {return fun.getCSS('img[src$=\"location.png\"]~a:last-of-type').href.replace('.html',`_${fun.getCSS('li.on+li:not(.click)>a').textContent}.html`);}",
+ "pageE": "table>tbody>tr:not(:first-of-type)",
+ "replaceE": "ul.g-ul",
+ "scrollD": 1000
+ }
+ },
"二手车之家": {
"host": "www.che168.com",
"url": "return (fun.lp() != '/' && !fun.indexOF('/dealer/'))",
@@ -4410,6 +4504,14 @@
"scrollD": 2000
}
},
+ "古诗文网": {
+ "host": ["www.gushiwen.cn","so.gushiwen.cn","m.gushiwen.cn"],
+ "pager": {
+ "nextL": "a.amore",
+ "pageE": ".left .sons:not([id]), .sonspic",
+ "replaceE": ".pagesright"
+ }
+ },
"文档库": {
"host": "www.wendangku.net",
"url": "/\\/doc\\//",
@@ -4430,17 +4532,6 @@
"scrollD": 3000
}
},
- "立创开源硬件平台": {
- "host": "www.oshwhub.com",
- "url": "/^\\/explore/",
- "pager": {
- "nextL": "a.current+a",
- "pageE": ".each-project",
- "replaceE": ".page",
- "scriptT": 0,
- "scrollD": 1200
- }
- },
"如意了教育 - 学校": {
"host": "www.ruyile.com",
"url": "return (fun.lp() == '/xuexiao/')",
@@ -4473,16 +4564,6 @@
"scrollD": 1000
}
},
- "资本市场电子化信息披露平台": {
- "host": "eid.csrc.gov.cn",
- "url": "/\\/\\d+\\/index/",
- "pager": {
- "nextL": "js; if (fun.getCSS('li.on+li:not(.click)>a') == null) {return}; if (fun.indexOF('_f.html')) {fun.getCSS('#channelFilterForm').action = `index_${fun.getCSS('li.on+li:not(.click)>a').textContent}_f.html`; return fun.getNextF('#channelFilterForm');} else {return fun.getCSS('img[src$=\"location.png\"]~a:last-of-type').href.replace('.html',`_${fun.getCSS('li.on+li:not(.click)>a').textContent}.html`);}",
- "pageE": "table>tbody>tr:not(:first-of-type)",
- "replaceE": "ul.g-ul",
- "scrollD": 1000
- }
- },
"美团技术团队": {
"host": "tech.meituan.com",
"url": "/^\\/($|page|tags)/",
@@ -4511,77 +4592,6 @@
"replaceE": ".pagination"
}
},
- "CADTutor - 列表页": {
- "host": "www.cadtutor.net",
- "url": "/\\/forum\\/forum\\//",
- "pager": {
- "nextL": "a[rel='next']",
- "pageE": "ol.ipsDataList>li:not([data-rowid])~li",
- "replaceE": "ul.ipsPagination",
- "scrollD": 2000
- }
- },
- "CADTutor - 帖子内": {
- "host": "www.cadtutor.net",
- "url": "/\\/forum\\/topic\\//",
- "thread": true,
- "pager": {
- "nextL": "a[rel='next']",
- "pageE": "#elPostFeed>form>*:not(input):not(.after-first-post)",
- "replaceE": "ul.ipsPagination",
- "scrollD": 2000
- }
- },
- "CADTutor - 搜索页": {
- "host": "www.cadtutor.net",
- "url": "/\\/forum\\/search\\//",
- "pager": {
- "nextL": "a[rel='next']",
- "pageE": "ol.ipsStream>li",
- "replaceE": "ul.ipsPagination",
- "scrollD": 2000
- }
- },
- "TheSwamp - 列表页": {
- "host": "www.theswamp.org",
- "url": "/board=/",
- "pager": {
- "nextL": ".pagelinks>strong+a",
- "pageE": "#messageindex tbody>tr:not([class])",
- "replaceE": ".pagelinks",
- "scrollD": 2000
- }
- },
- "TheSwamp - 帖子内": {
- "host": "www.theswamp.org",
- "url": "/topic=/",
- "thread": true,
- "pager": {
- "nextL": ".pagelinks>strong+a",
- "pageE": "#forumposts form>*",
- "replaceE": ".pagelinks",
- "scrollD": 2000
- }
- },
- "Ventoy 论坛": {
- "host": "forums.ventoy.net",
- "url": "/^\\/(forumdisplay|search)\\.php/",
- "pager": {
- "nextL": ".pagination_next",
- "pageE": ".tborder>tbody>tr.inline_row",
- "replaceE": ".pagination"
- }
- },
- "Ventoy 论坛 - 帖子内": {
- "host": "forums.ventoy.net",
- "url": "/^\\/showthread\\.php/",
- "thread": true,
- "pager": {
- "nextL": ".pagination:not(#breadcrumb_multipage_popup) .pagination_next",
- "pageE": "#posts>*",
- "replaceE": ".pagination:not(#breadcrumb_multipage_popup)"
- }
- },
"学佛网": {
"host": "www.xuefo.tw",
"pager": {
@@ -4954,6 +4964,7 @@
"host": ["e-hentai.org","exhentai.org"],
"url": "/^\\/g\\//",
"pager": {
+ "type": 3,
"nextL": "//table[@class='ptt']//a[text()='>']",
"pageE": "#gdt>div:not(.c)",
"replaceE": ".ptt, .ptb"
@@ -5038,8 +5049,7 @@
"type": 3,
"nextL": "a.paginator_page[rel='next']",
"pageE": "#detail_list",
- "replaceE": ".paginator_area",
- "scrollD": 1000
+ "replaceE": ".paginator_area"
}
},
"Hentai Cosplays - 图片页": {
@@ -5050,8 +5060,7 @@
"type": 3,
"nextL": "id('paginator')//a[contains(text(), '>')]",
"pageE": ".icon-overlay",
- "replaceE": "#paginator",
- "scrollD": 1000
+ "replaceE": "#paginator"
}
},
"Hentai Cosplays - 手机版 - 分类页": {
@@ -5062,8 +5071,7 @@
"type": 3,
"nextL": "a.paginator_page[rel='next']",
"pageE": "#page>#right_sidebar>#entry_list",
- "replaceE": "#page>#page_nation",
- "scrollD": 1000
+ "replaceE": "#page>#page_nation"
},
"function": {
"bF": "return fun.src_bF(pageE, [0,'img[data-original]','data-original'])"
@@ -5076,8 +5084,7 @@
"type": 3,
"nextL": "a.nextpostslink",
"pageE": "#center>#display_area_image>#image-list",
- "replaceE": ".wp-pagenavi",
- "scrollD": 1000
+ "replaceE": ".wp-pagenavi"
}
},
"绅士仓库": {
From 185b6aa402d7015f88bbea076cc150b55dab42c7 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Fri, 8 Apr 2022 10:44:23 +0800
Subject: [PATCH 0008/1154] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E6=91=84?=
=?UTF-8?q?=E5=9B=BE=E7=BD=91]=20=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
other/Autopage/rules.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json
index 79829ec08..aacda7b95 100644
--- a/other/Autopage/rules.json
+++ b/other/Autopage/rules.json
@@ -1315,7 +1315,7 @@
"scrollD": 2000
},
"function": {
- "bF": "return fun.src_bF(pageE, [0,'img[data-original]','data-original'])"
+ "bF": "pageE.forEach(function (one) {if (one.className === 'list' && one.dataset.w != undefined) {one.style.width = `${one.dataset.w}px`;}}); return fun.src_bF(pageE, [0,'img[data-original]','data-original'])"
}
},
"众图网": {
From 8ddd62cc7ab73ce183b799416458902c2d8ad0a8 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Fri, 8 Apr 2022 13:33:22 +0800
Subject: [PATCH 0009/1154] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20[COCOMANGA=20?=
=?UTF-8?q?=E6=BC=AB=E7=94=BB]=20=E8=A7=84=E5=88=99=E5=B9=B6=E7=A7=BB?=
=?UTF-8?q?=E5=8A=A8=E8=87=B3=E5=A4=96=E7=BD=AE=E7=BF=BB=E9=A1=B5=E8=A7=84?=
=?UTF-8?q?=E5=88=99=E5=88=97=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 89 +--------------------------------------
other/Autopage/rules.json | 26 ++++++++++++
2 files changed, 27 insertions(+), 88 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index a0635bc42..134be5cbe 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -3,7 +3,7 @@
// @name:zh-CN 自动无缝翻页
// @name:zh-TW 自動無縫翻頁
// @name:en AutoPager
-// @version 5.6.7
+// @version 5.6.8
// @author X.I.U
// @description ⭐无缝衔接下一页内容到网页底部(类似瀑布流)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP...」论坛】【百度、谷歌(Google)、必应(Bing)、搜狗、微信、360、Yahoo、Yandex 等搜索引擎...】、贴吧、豆瓣、知乎、微博、NGA、V2EX、煎蛋网、龙的天空、起点中文、千图网、千库网、Pixabay、Pixiv、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、RuTracker、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、小众软件、【动漫狂、漫画猫、漫画屋、漫画 DB、动漫之家、拷贝漫画、HiComic、Mangabz、Xmanhua 等漫画网站...】、PubMed、Z-Library、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @description:zh-TW ⭐無縫銜接下一頁內容到網頁底部(類似瀑布流)⭐,支持各論壇、社交、遊戲、漫畫、小說、學術、搜索引擎(Google、Bing、Yahoo...) 等網站~
@@ -1441,59 +1441,6 @@ function: {
scrollD: 1000
}
}, // Xmanhua 漫画 - 分类/搜索页
- cocomanga: {
- host: 'www.cocomanga.com',
- url: ()=> {if (indexOF('.html')) {
- if (!(getCookie('mh_readmode') === '' || getCookie('mh_readmode') === '3')) {
- document.cookie='mh_readmode=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/'; // 强制开启自带的无缝翻页功能
- location.reload(); // 刷新网页
- }
- setTimeout(cocomanga_init, 500);
- curSite = DBSite.cocomanga;
- } else if (indexOF(/\/\d+\/$/)) {
- setTimeout(function(){if (getCSS('a.website-display-all')) getCSS('a.website-display-all').click();}, 300)
- } else if (lp == '/show') {
- curSite = DBSite.cocomanga_list;
- } else if (lp == '/search') {
- curSite = DBSite.cocomanga_search;
- }},
- style: '.mh_readend, .mh_footpager, .mh_readmode {display: none !important;} .mh_comicpic img {cursor: unset !important;} .mh_comicpic img {min-height: 150px;}',
- pager: {
- type: 4,
- nextL: '//a[contains(@class, "read_page_link") and contains(string(), "下一章")][not(contains(@href, "javascript"))]',
- insertP: ['#mangalist', 3],
- insertE: cocomanga_insertE,
- replaceE: '.mh_readtitle, .mh_headpager > a.mh_prevbook, .mh_readend',
- interval: 1000,
- scrollD: 2500
- }
- }, // COCOMANGA 漫画
- cocomanga_list: {
- blank: 1,
- pager: {
- nextL: ()=> getNextEP('.fed-page-info a.fed-btns-green+a[onclick]', 'page=', /page=\d+/),
- pageE: 'ul.fed-list-info > li',
- replaceE: '.fed-page-info',
- scrollD: 1000
- },
- function: {
- bF: src_bF,
- bFp: [1, 'a[data-original]', 'data-original']
- }
- }, // COCOMANGA 漫画 - 分类页
- cocomanga_search: {
- blank: 1,
- pager: {
- nextL: ()=> getNextEP('.fed-page-info a.fed-btns-green+a[onclick]', 'page=', /page=\d+/),
- pageE: 'dl.fed-deta-info',
- replaceE: '.fed-page-info',
- scrollD: 1000
- },
- function: {
- bF: src_bF,
- bFp: [1, 'a[data-original]', 'data-original']
- }
- }, // COCOMANGA 漫画 - 搜索页
coolkeyan: {
host: 'www.coolkeyan.com',
url: ()=> {if (location.hash.indexOf('/project/') > -1) curSite = DBSite.coolkeyan;},
@@ -2545,40 +2492,6 @@ function: {
}
- // [COCOMANGA 漫画] 初始化(调整本话图片)
- function cocomanga_init() {
- let last = getCSS('.mh_comicpic:last-of-type');
- if (last && last.getAttribute('p')) {
- getOne(curSite.pager.insertP[0]).innerHTML = ''; // 删除旧图片元素
- cocomanga_img(parseInt(last.getAttribute('p'))) // 插入新图片元素
- }
- }
- // [COCOMANGA 漫画] 生成图片元素并插入网页
- function cocomanga_img(totalImageCount) {
- if (totalImageCount < 1) return
- let _img = '';
- for (let i=1; i<=totalImageCount; i++) {_img += `
})
`;}
- getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
- }
- // [COCOMANGA 漫画] 插入数据
- function cocomanga_insertE(pageE, type) {
- if (pageE) {
- // 插入