',
url = '', _html = '', _gitClone = '';
- html.nextElementSibling.hidden = true; // 隐藏右侧复制按钮
+ html.nextElementSibling.hidden = true; // 隐藏右侧复制按钮(考虑到能直接点击复制,就不再重复实现复制按钮事件了)
if (GM_getValue('menu_gitClone')) {_gitClone='git clone '; html.value = _gitClone + html.value; html.setAttribute('value', html.value);}
// 克隆原 Git Clone 元素
let html_clone = html.cloneNode(true);
for (let i=0;i
'
}
html.parentElement.insertAdjacentHTML('afterend', _html);
@@ -296,14 +296,14 @@
let href_split = html.value.split(':')[1],
html_parent = '',
url = '', _html = '', _gitClone = '';
- html.nextElementSibling.hidden = true; // 隐藏右侧复制按钮
+ html.nextElementSibling.hidden = true; // 隐藏右侧复制按钮(考虑到能直接点击复制,就不再重复实现复制按钮事件了)
if (GM_getValue('menu_gitClone')) {_gitClone='git clone '; html.value = _gitClone + html.value; html.setAttribute('value', html.value);}
// 克隆原 Git Clone SSH 元素
let html_clone = html.cloneNode(true);
for (let i=0;i
'
}
html.parentElement.insertAdjacentHTML('afterend', _html);
@@ -361,15 +361,14 @@
cntElm_a = trElm.querySelector('[role="rowheader"] > .css-truncate.css-truncate-target.d-block.width-fit > a, .react-directory-truncate>a'),
Name = cntElm_a.innerText,
href = cntElm_a.getAttribute('href'),
- href2 = href.replace('/blob/','/'), url, url_name, url_tip = '';
+ href2 = href.replace('/blob/','/'), url = '';
if ((raw_url[menu_rawFast][0].indexOf('/gh') + 3 === raw_url[menu_rawFast][0].length) && raw_url[menu_rawFast][0].indexOf('cdn.staticaly.com') === -1) {
url = raw_url[menu_rawFast][0] + href.replace('/blob/','@');
} else {
url = raw_url[menu_rawFast][0] + href2;
}
- url_name = raw_url[menu_rawFast][1]; url_tip = raw_url[menu_rawFast][2];
- fileElm.insertAdjacentHTML('afterend', `${svg[0]}`);
+ fileElm.insertAdjacentHTML('afterend', `${svg[0]}`);
// 绑定鼠标事件
trElm.onmouseover = mouseOverHandler;
trElm.onmouseout = mouseOutHandler;
From c06430a33688e05437fe96365486d6c294e54e9a Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Fri, 10 May 2024 16:05:06 +0800
Subject: [PATCH 043/548] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20[B=E7=AB=99?=
=?UTF-8?q?=E6=90=9C=E7=B4=A2=E9=A1=B5]=20=E6=94=AF=E6=8C=81(=E5=B7=B2?=
=?UTF-8?q?=E7=BB=8F=E7=BA=AF=E5=8A=A8=E6=80=81=E6=97=A0=E6=B3=95=E6=94=AF?=
=?UTF-8?q?=E6=8C=81=E4=BA=86)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 75 ++-------------------------------------
other/Autopage/rules.json | 13 -------
2 files changed, 3 insertions(+), 85 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 136766f0e..246fe6f20 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -3,9 +3,9 @@
// @name:zh-CN 自动无缝翻页
// @name:zh-TW 自動無縫翻頁
// @name:en AutoPager
-// @version 6.5.20
+// @version 6.5.21
// @author X.I.U
-// @description ⭐无缝加载 下一页内容 至网页底部(类似瀑布流)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP...」论坛】【百度、谷歌(Google)、必应(Bing)、搜狗、微信、360、Yahoo、Yandex 等搜索引擎...】、贴吧、豆瓣、知乎、B 站(bilibili)、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 ⭐无缝加载 下一页内容 至网页底部(类似瀑布流)⭐,目前支持:【所有「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...) 等網站~
// @description:en Append the next page content to the bottom seamlessly (like a waterfall)~
// @match *://*/*
@@ -64,13 +64,7 @@
// @exclude https://m.v.qq.com/*
// @exclude https://v.qq.com/*
// @exclude https://*.acfun.cn/*
-// @exclude https://t.bilibili.com/*
-// @exclude https://www.bilibili.com/*
-// @exclude https://live.bilibili.com/*
-// @exclude https://space.bilibili.com/*
-// @exclude https://manga.bilibili.com/*
-// @exclude https://member.bilibili.com/*
-// @exclude https://message.bilibili.com/*
+// @exclude https:///.bilibili.com/*
// @exclude https://*.youtube.com/*
// @exclude https://*.youtube-nocookie.com/*
// @exclude https://*.cnki.net/*
@@ -897,39 +891,6 @@ function: {
scrollD: 3500
}
}, // NexusMods posts
- bilibili_search: {
- host: 'search.bilibili.com',
- url: ()=> {
- urlC = true;
- if ((lp == '/all' || lp == '/video') && getCSS('ul.video-list') != null) {
- curSite = DBSite.bilibili_search;
- } else if (lp == '/article' && getCSS('#article-list') != null) {
- curSite = DBSite.bilibili_search_article;
- }
- },
- retry: 100,
- pager: {
- nextL: bilibili_search_nextL,
- pageE: '//ul[contains(@class, "video-list")]/li | //script[contains(text(), "window.__INITIAL_STATE__")]',
- insertP: ['ul.video-list', 3],
- replaceE: 'ul.pages',
- scriptT: 2,
- scrollD: 1000
- },
- function: {
- aF: bilibili_search_aF
- }
- }, // B 站(Bilibili) - 搜索页 - 视频
- bilibili_search_article: {
- retry: 100,
- pager: {
- nextL: bilibili_search_nextL,
- pageE: 'li.article-item',
- replaceE: 'ul.pages',
- //scriptT: 2,
- scrollD: 1000
- }
- }, // B 站(Bilibili) - 搜索页 - 专栏
manhuacat: {
host: ['www.manhuacat.com', 'www.maofly.com','www.manhuafei.com'],
url: ()=> {if (indexOF(/\/(manga|manhua)\/\d+\/.+\.html/)) {
@@ -1489,36 +1450,6 @@ function: {
}
- // [bilibili_search] 获取下一页地址
- function bilibili_search_nextL() {
- if (!location.search) return
- let pageActive = 1, pageLast = parseInt(getXpath('//ul[@class="pages"]/li[contains(@class, "page-item")][not(contains(@class, "next") or contains(@class, "prev"))][last()]').innerText);
- if (!pageLast) return
- if (indexOF(/page=\d+/, 's')) {
- pageActive = parseInt(/page=\d+/.exec(location.search)[0].replace('page=',''))
- }
- if (pageActive < pageLast) {
- if (indexOF(/page=\d+/, 's')) {
- return (location.origin + location.pathname + location.search.replace(/page=\d+/,`page=${pageActive+1}`))
- } else {
- return (location.origin + location.pathname + location.search + `&page=${pageActive+1}`)
- }
- }
- }
- // [bilibili_search] 插入后函数(加载图片)
- function bilibili_search_aF() {
- let result = __INITIAL_STATE__.flow[__INITIAL_STATE__.flow.fields[0]].result;
- if (result.length > 0) {
- let imgArr = getAllCSS('.img>span:first-child');
- if (imgArr.length > 0) {
- for (let i = 0; i < imgArr.length; i++) {
- imgArr[i].insertAdjacentHTML('beforebegin', ``); // 将 img 标签插入到网页中
- }
- }
- }
- }
-
-
// [漫画猫] 初始化(显示本话所以图片)
function manhuacat_init() {
let _img = '';
diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json
index eec883c89..19d91d04b 100644
--- a/other/Autopage/rules.json
+++ b/other/Autopage/rules.json
@@ -2198,19 +2198,6 @@
"pageE": "a[data-id]"
}
},
- "bilibili - 新版搜索页": {
- "host": "search.bilibili.com",
- "url": "fun.isUrlC(); return ((fun.lp() == '/all' || fun.lp() == '/video' || fun.lp() == '/pgc' || fun.lp() == '/article') && !fun.getCSS('ul.video-list') && !fun.getCSS('#article-list'))",
- "history": true,
- "pager": {
- "type": 6,
- "nextL": "js; return fun.getNextEP('.vui_pagenation--btn-num.vui_button--active+button.vui_pagenation--btn-num', 'page=', /page=\\d+(&o=\\d+)?/)",
- "pageE": ".video-list-item, .media-list>div, .video-list>div",
- "replaceE": ".vui_pagenation--btns",
- "loadTime": 600,
- "scrollD": 3000
- }
- },
"NO视频": {
"host": "www.novipnoad.com",
"url": "return (fun.lp() != '/' && !fun.indexOF('.html'))",
From be4654567083580e6ca547a91bc063846e87315e Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Fri, 10 May 2024 16:07:04 +0800
Subject: [PATCH 044/548] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20[B=E7=AB=99?=
=?UTF-8?q?=E6=90=9C=E7=B4=A2=E9=A1=B5]=20=E6=94=AF=E6=8C=81(=E5=B7=B2?=
=?UTF-8?q?=E7=BB=8F=E7=BA=AF=E5=8A=A8=E6=80=81=E6=97=A0=E6=B3=95=E6=94=AF?=
=?UTF-8?q?=E6=8C=81=E4=BA=86)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 246fe6f20..1d73cf4d9 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -64,7 +64,7 @@
// @exclude https://m.v.qq.com/*
// @exclude https://v.qq.com/*
// @exclude https://*.acfun.cn/*
-// @exclude https:///.bilibili.com/*
+// @exclude https://*.bilibili.com/*
// @exclude https://*.youtube.com/*
// @exclude https://*.youtube-nocookie.com/*
// @exclude https://*.cnki.net/*
From 694874b4e5a4b2018d82e309f1d8e19227b60a54 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sat, 25 May 2024 13:57:09 +0800
Subject: [PATCH 045/548] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E5=8A=A0=E9=80=9F?=
=?UTF-8?q?=E6=BA=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
GithubEnhanced-High-Speed-Download.user.js | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js
index 7952bd73d..f4c0da62a 100644
--- a/GithubEnhanced-High-Speed-Download.user.js
+++ b/GithubEnhanced-High-Speed-Download.user.js
@@ -3,7 +3,7 @@
// @name:zh-CN Github 增强 - 高速下载
// @name:zh-TW Github 增強 - 高速下載
// @name:en Github Enhancement - High Speed Download
-// @version 2.5.21
+// @version 2.5.22
// @author X.I.U
// @description 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件 (公益加速)、项目列表单文件快捷下载 (☁)、添加 git clone 命令
// @description:zh-CN 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件 (公益加速)、项目列表单文件快捷下载 (☁)
@@ -52,6 +52,9 @@
['https://sciproxy.com/github.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [sciproxy.com] 提供'],
['https://ghproxy.cc/https://github.com', '美国', '[美国 洛杉矶] - 该公益加速源由 [@yionchiii lau] 提供'],
['https://cf.ghproxy.cc/https://github.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [@yionchiii lau] 提供'],
+ ['https://www.ghproxy.cc/https://github.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [@yionchiii lau] 提供'],
+ ['https://ghproxy.cn/https://github.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [@yionchiii lau] 提供'],
+ ['https://www.ghproxy.cn/https://github.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [@yionchiii lau] 提供'],
['https://gh.jiasu.in/https://github.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [@0-RTT] 提供'],
['https://dgithub.xyz', '美国', '[美国 西雅图] - 该公益加速源由 [dgithub.xyz] 提供'],
//['https://download.fgit.cf', '美国', '[美国 洛杉矶] - 该公益加速源由 [FastGit 群组成员] 提供'], // 被投诉挂了
@@ -79,6 +82,9 @@
//['https://sciproxy.com/github.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [sciproxy.com] 提供'], // 暂无必要
//['https://ghproxy.cc/https://github.com', '美国', '[美国 洛杉矶] - 该公益加速源由 [@yionchiii lau] 提供'], // 暂无必要
//['https://cf.ghproxy.cc/https://github.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [@yionchiii lau] 提供'], // 暂无必要
+ //['https://www.ghproxy.cc/https://github.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [@yionchiii lau] 提供'], // 暂无必要
+ //['https://ghproxy.cn/https://github.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [@yionchiii lau] 提供'], // 暂无必要
+ //['https://www.ghproxy.cn/https://github.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [@yionchiii lau] 提供'], // 暂无必要
//['https://gh.jiasu.in/https://github.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [@0-RTT] 提供'], // 暂无必要
//['https://dgithub.xyz', '美国', '[美国 西雅图] - 该公益加速源由 [dgithub.xyz] 提供'], // 暂无必要
//['https://hub.fgit.cf', '美国', '[美国 洛杉矶] - 该公益加速源由 [FastGit 群组成员] 提供'], // 被投诉挂了
@@ -108,6 +114,9 @@
//['https://raw.incept.pw', '香港', '[中国香港、美国] - 该公益加速源由 [FastGit 群组成员] 提供
- 缓存:无(或时间很短)'], // ERR_SSL_PROTOCOL_ERROR
//['https://ghproxy.cc/https://raw.githubusercontent.com', '美国', '[美国 洛杉矶] - 该公益加速源由 [@yionchiii lau] 提供'], // 暂无必要
//['https://cf.ghproxy.cc/https://raw.githubusercontent.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [@yionchiii lau] 提供'], // 暂无必要
+ //['https://www.ghproxy.cc/https://raw.githubusercontent.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [@yionchiii lau] 提供'], // 暂无必要
+ //['https://ghproxy.cn/https://raw.githubusercontent.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [@yionchiii lau] 提供'], // 暂无必要
+ //['https://www.ghproxy.cn/https://raw.githubusercontent.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [@yionchiii lau] 提供'], // 暂无必要
//['https://gh.jiasu.in/https://raw.githubusercontent.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [@0-RTT] 提供'], // 暂无必要
//['https://dgithub.xyz', '美国', '[美国 西雅图] - 该公益加速源由 [dgithub.xyz] 提供'], // 暂无必要
//['https://raw.fgit.cf', '美国', '[美国 洛杉矶] - 该公益加速源由 [FastGit 群组成员] 提供
- 缓存:无(或时间很短)'], // 被投诉挂了
From dca9c77c34505d8005b0a49d28bb6666ade0b2aa Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sun, 26 May 2024 12:17:33 +0800
Subject: [PATCH 046/548] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E5=8A=A0=E9=80=9F?=
=?UTF-8?q?=E6=BA=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
GithubEnhanced-High-Speed-Download.user.js | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js
index f4c0da62a..d0c4ed5b9 100644
--- a/GithubEnhanced-High-Speed-Download.user.js
+++ b/GithubEnhanced-High-Speed-Download.user.js
@@ -3,7 +3,7 @@
// @name:zh-CN Github 增强 - 高速下载
// @name:zh-TW Github 增強 - 高速下載
// @name:en Github Enhancement - High Speed Download
-// @version 2.5.22
+// @version 2.5.23
// @author X.I.U
// @description 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件 (公益加速)、项目列表单文件快捷下载 (☁)、添加 git clone 命令
// @description:zh-CN 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件 (公益加速)、项目列表单文件快捷下载 (☁)
@@ -57,10 +57,9 @@
['https://www.ghproxy.cn/https://github.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [@yionchiii lau] 提供'],
['https://gh.jiasu.in/https://github.com', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [@0-RTT] 提供'],
['https://dgithub.xyz', '美国', '[美国 西雅图] - 该公益加速源由 [dgithub.xyz] 提供'],
- //['https://download.fgit.cf', '美国', '[美国 洛杉矶] - 该公益加速源由 [FastGit 群组成员] 提供'], // 被投诉挂了
+ ['https://download.ixnic.net', '美国', '[美国 洛杉矶] - 该公益加速源由 [FastGit 群组成员] 提供'],
['https://download.nuaa.cf', '美国', '[美国 洛杉矶] - 该公益加速源由 [FastGit 群组成员] 提供'],
['https://download.scholar.rr.nu', '美国', '[美国 纽约] - 该公益加速源由 [FastGit 群组成员] 提供'],
- //['https://download.njuu.cf', '美国', '[美国 纽约] - 该公益加速源由 [FastGit 群组成员] 提供'], // 域名挂了
['https://download.yzuu.cf', '美国', '[美国 纽约] - 该公益加速源由 [FastGit 群组成员] 提供']
], download_url = [
//['https://download.fastgit.org', '德国', '[德国] - 该公益加速源由 [FastGit] 提供
提示:希望大家尽量多使用前面的美国节点(每次随机 4 个来负载均衡),
避免流量都集中到亚洲公益节点,减少成本压力,公益才能更持久~', 'https://archive.fastgit.org'], // 证书过期
@@ -105,7 +104,7 @@
//['https://gh-proxy.com/https://raw.githubusercontent.com', '韩国 2', '[韩国] - 该公益加速源由 [ghproxy] 提供
- 缓存:无(或时间很短)'],
['https://ghproxy.net/https://raw.githubusercontent.com', '日本 1', '[日本 大阪] - 该公益加速源由 [ghproxy] 提供
- 缓存:无(或时间很短)'],
['https://fastly.jsdelivr.net/gh', '日本 2', '[日本 东京] - 该公益加速源由 [JSDelivr CDN] 提供
- 缓存:有
- 不支持大小超过 50 MB 的文件
- 不支持版本号格式的分支名(如 v1.2.3)'],
- ['https://fastraw.ixnic.net', '日本 3', '[日本 大阪] - 该公益加速源由 [FastGit 群组成员] 提供
- 缓存:无(或时间很短)'],
+ ['https://fastraw.ixnic.net', '日本 3', '[日本 大阪] - 该公益加速源由 [FastGit 群组成员] 提供
- 缓存:无(或时间很短)'], // 还有一个美国洛杉矶的 raw.ixnic.net
//['https://gcore.jsdelivr.net/gh', '美国', '[美国 Cloudflare CDN] - 该公益加速源由 [JSDelivr CDN] 提供
- 缓存:有
- 不支持大小超过 50 MB 的文件
- 不支持版本号格式的分支名(如 v1.2.3)'], // 变成 美国 Cloudflare CDN 了
['https://cdn.jsdelivr.us/gh', '其他 1', '[韩国、美国、马来西亚、罗马尼亚等](CDN 不固定) - 该公益加速源由 [@ayao] 提供
- 缓存:有'],
['https://jsdelivr.b-cdn.net/gh', '其他 2', '[中国香港、台湾、日本、新加坡等](CDN 不固定) - 该公益加速源由 [@rttwyjz] 提供
- 缓存:有'],
From 42aef2c9a542d7b912d9c47c637e213bb23f6bde Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sat, 1 Jun 2024 14:39:28 +0800
Subject: [PATCH 047/548] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E7=BF=BB=E9=A1=B5?=
=?UTF-8?q?=E6=A8=A1=E5=BC=8F1=E5=92=8C3=E7=9A=84=E8=AF=B7=E6=B1=82?=
=?UTF-8?q?=E5=AE=9E=E7=8E=B0=E6=96=B9=E5=BC=8F=20(=E6=94=B9=E4=B8=BA?=
=?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=8E=9F=E7=94=9F=20XMLHttpRequest=20?=
=?UTF-8?q?=E6=9D=A5=E8=A7=A3=E5=86=B3=E5=9B=A0=E7=BC=BA=E5=A4=B1=E8=B7=A8?=
=?UTF-8?q?=E5=9F=9F=20cookie=20=E5=AF=BC=E8=87=B4=E7=9A=84=E9=97=AE?=
=?UTF-8?q?=E9=A2=98=EF=BC=88=E6=AF=94=E5=A6=82=E4=B8=80=E4=BA=9B=E4=BD=BF?=
=?UTF-8?q?=E7=94=A8=20Cloudflare=20CDN=20=E4=BA=BA=E6=9C=BA=E9=AA=8C?=
=?UTF-8?q?=E8=AF=81=E7=9A=84=E7=BD=91=E7=AB=99=EF=BC=8C=E4=BC=9A=E5=87=BA?=
=?UTF-8?q?=E7=8E=B0=E8=84=9A=E6=9C=AC=E5=90=8E=E5=8F=B0=E8=8E=B7=E5=8F=96?=
=?UTF-8?q?=E5=88=B0=E4=BA=BA=E6=9C=BA=E9=AA=8C=E8=AF=81=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=EF=BC=89)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 36 +++++++++++++++++++++++++++++++++---
1 file changed, 33 insertions(+), 3 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 1d73cf4d9..019433a80 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -3,7 +3,7 @@
// @name:zh-CN 自动无缝翻页
// @name:zh-TW 自動無縫翻頁
// @name:en AutoPager
-// @version 6.5.21
+// @version 6.6.0
// @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...) 等網站~
@@ -1867,7 +1867,37 @@ function: {
// 翻页类型 1/3
function getPageE(url) {
- GM_xmlhttpRequest({
+ // 依靠原生 XMLHttpRequest 尝试解决因缺失跨域 cookie 导致的问题(比如一些使用 Cloudflare CDN 人机验证的网站,会出现脚本后台获取到人机验证页面)
+ const xhr = new XMLHttpRequest();
+ xhr.open('GET', url, true);
+ xhr.overrideMimeType('text/html; charset=' + (document.characterSet||document.charset||document.inputEncoding));
+
+ if (curSite.xRequestedWith === true) {xhr.setRequestHeader('x-requested-with', 'XMLHttpRequest')}
+ (curSite.noReferer === true) ? xhr.setRequestHeader('Referer', ''):xhr.setRequestHeader('Referer', location.href)
+ xhr.setRequestHeader('User-Agent', navigator.userAgent)
+ xhr.setRequestHeader('Accept', 'text/html,application/xhtml+xml,application/xml')
+
+ xhr.timeout = 10000;
+ xhr.onload = function() {
+ if (xhr.status >= 200 && xhr.status < 300) {
+ //console.log('URL:' + url, '最终 URL:' + xhr.responseURL, '返回内容:' + xhr.responseText)
+ processElems(createDocumentByString(xhr.responseText));
+ } else {
+ console.error('[自动无缝翻页] - 处理获取到的下一页内容时出现问题,请检查!', xhr.statusText);
+ }
+ };
+ xhr.onerror = function() {
+ console.log('URL:' + url, xhr.statusText)
+ GM_notification({text: '❌ 获取下一页失败...', timeout: 5000});
+ };
+ xhr.ontimeout = function() {
+ setTimeout(function(){curSite.pageUrl = '';}, 3000)
+ console.log('URL:' + url, xhr.statusText)
+ GM_notification({text: '❌ 获取下一页超时,可 3 秒后再次滚动网页重试(或尝试刷新网页)...', timeout: 5000});
+ };
+ xhr.send();
+
+ /*GM_xmlhttpRequest({
url: url,
method: 'GET',
overrideMimeType: 'text/html; charset=' + (document.characterSet||document.charset||document.inputEncoding),
@@ -1895,7 +1925,7 @@ function: {
console.log('URL:' + url, response)
GM_notification({text: '❌ 获取下一页超时,可 3 秒后再次滚动网页重试(或尝试刷新网页)...', timeout: 5000});
}
- });
+ });*/
}
// 翻页类型 4
function getPageE_(url, type = '', method = 'GET', data = '', type2) {
From 4ccfb76d779decb0722feb4c1a6a66e9ed5cb4b5 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sat, 1 Jun 2024 16:32:53 +0800
Subject: [PATCH 048/548] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E6=97=A0?=
=?UTF-8?q?=E8=BF=BD=E6=90=9C=E7=B4=A2]=E3=80=81[nhentai]=20=E8=A7=84?=
=?UTF-8?q?=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
other/Autopage/rules.json | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json
index 19d91d04b..a5cdc17ec 100644
--- a/other/Autopage/rules.json
+++ b/other/Autopage/rules.json
@@ -120,7 +120,6 @@
"url": "if (fun.isMobile()) {return}; fun.isUrlC(); return (fun.lp() == '/s' && !fun.indexOF('a=image','s'))",
"style": ".so-lazyimg{opacity: 1 !important;} .result {border: none !important;}",
"history": true,
- "noReferer": true,
"pager": {
"nextL": "#snext",
"pageE": ".result,head>style",
@@ -6034,12 +6033,12 @@
},
"nhentai": {
"host": ["nhentai.net","nhentai.to","nhentai.xxx"],
- "url": "return fun.getCSS('a.next, .current+a.page') && (fun.getCSS('.gallery, #image-container'))",
+ "url": "if (fun.indexOF(/^\\/g\\/\\d+\\/\\d+\\//)){const imageA = document.querySelector('#image-container>a'); imageA.outerHTML=imageA.innerHTML;return true;} else if (fun.getCSS('a.next') && fun.getCSS('.gallery')){return true;}",
"style": "section#image-container img {max-width: 100% !important;height: auto !important;display: block !important;margin: 0 auto !important;}",
"blank": 3,
"pager": {
"nextL": "a.next, .current+a.page",
- "pageE": ".container>.gallery, .gallery-favorite, #image-container img",
+ "pageE": ".container>.gallery, #image-container img",
"replaceE": ".pagination, .reader-pagination"
},
"function": {
From 9762aecc22480019fca651d1e3d5cd64e1832ad7 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sat, 1 Jun 2024 16:34:27 +0800
Subject: [PATCH 049/548] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E4=B8=8A=E6=AC=A1?=
=?UTF-8?q?=E6=94=B9=E5=8A=A8=E7=9A=84=E4=BB=A3=E7=A0=81=20=E6=96=B0?=
=?UTF-8?q?=E5=A2=9E=20=E8=84=9A=E6=9C=AC=E5=86=85=E7=BD=AE=E5=87=BD?=
=?UTF-8?q?=E6=95=B0=20fun.pageNumIncrement()=20=E7=94=A8=E4=BA=8E?=
=?UTF-8?q?=E5=9C=A8=E7=89=B9=E6=AE=8A=E8=A7=84=E5=88=99=E6=83=85=E5=86=B5?=
=?UTF-8?q?=E4=B8=8B=E6=89=8B=E5=8A=A8=E9=80=92=E5=A2=9E=E5=B7=A6=E4=B8=8B?=
=?UTF-8?q?=E8=A7=92=E7=9A=84=E9=A1=B5=E7=A0=81=E6=95=B0=E5=AD=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 44 +++++++++++++++++++++++++-------------------
1 file changed, 25 insertions(+), 19 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 019433a80..6dbeab0ba 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -3,7 +3,7 @@
// @name:zh-CN 自动无缝翻页
// @name:zh-TW 自動無縫翻頁
// @name:en AutoPager
-// @version 6.6.0
+// @version 6.6.1
// @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...) 等網站~
@@ -126,7 +126,7 @@
loadMoreExclude1 = ['.smzdm.com','stackoverflow.com'],
loadMoreExclude2 = ['.steampowered.com','.zcool.com.cn'],
menuId = [], webType = 0, curSite = {SiteTypeID: 0}, DBSite, DBSite2, pausePage = true, pageNum = {now: 1, _now: 1}, urlC = false, nowLocation = '', lp = location.pathname, scriptHandler;
- window.autoPage = {lp: ()=>location.pathname, indexOF: indexOF, isMobile: isMobile, isUrlC: isUrlC, blank: forceTarget, getAll: getAll, getOne: getOne, getAllXpath: getAllXpath, getXpath: getXpath, getAllCSS: getAllCSS, getCSS: getCSS, getNextE: getNextE, getNextEP: getNextEP, getNextSP: getNextSP, getNextEPN: getNextEPN, getNextUPN: getNextUPN, getNextUP: getNextUP, getNextF: getNextF, getSearch: getSearch, getCookie: getCookie, insStyle: insStyle, insScript: insScript, cleanuEvent: cleanuEvent, src_bF: src_bF, xs_bF: xs_bF}
+ window.autoPage = {lp: ()=>location.pathname, indexOF: indexOF, isMobile: isMobile, isUrlC: isUrlC, blank: forceTarget, getAll: getAll, getOne: getOne, getAllXpath: getAllXpath, getXpath: getXpath, getAllCSS: getAllCSS, getCSS: getCSS, getNextE: getNextE, getNextEP: getNextEP, getNextSP: getNextSP, getNextEPN: getNextEPN, getNextUPN: getNextUPN, getNextUP: getNextUP, getNextF: getNextF, getSearch: getSearch, getCookie: getCookie, insStyle: insStyle, insScript: insScript, cleanuEvent: cleanuEvent, src_bF: src_bF, xs_bF: xs_bF, pageNumIncrement: pageNumIncrement}
if (typeof GM_info != 'undefined') {scriptHandler = GM_info.scriptHandler;} else if (typeof GM != 'undefined' && typeof GM.info != 'undefined') {scriptHandler = GM.info.scriptHandler;} else {scriptHandler = '';}
for (let i=0;i`;}
if (_img) {
getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
- pageNum.now = pageNum._now + 1
+ pageNumIncrement()
}
}
@@ -1537,7 +1537,7 @@ function: {
// 将 img 标签插入到网页中
getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), imanhuaw_getIMG());
addHistory(pageE);
- pageNum.now = pageNum._now + 1
+ pageNumIncrement()
}
@@ -1580,7 +1580,7 @@ function: {
_img += `
`
}
getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
- pageNum.now = pageNum._now + 1
+ pageNumIncrement()
}
@@ -1613,7 +1613,7 @@ function: {
for (let i=1;i`;}
getCSS(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img);
addHistory(pageE);
- pageNum.now = pageNum._now + 1
+ pageNumIncrement()
}
@@ -1658,7 +1658,7 @@ function: {
// 插入