From 30593af997454958e7b18f251296006ebfdf99b9 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Thu, 17 Feb 2022 15:03:54 +0800
Subject: [PATCH 0001/1428] =?UTF-8?q?=E9=99=8D=E4=BD=8E=20[3DM]=E3=80=81[?=
=?UTF-8?q?=E6=B8=B8=E4=BE=A0=E7=BD=91]=E3=80=81[=E6=B8=B8=E6=B0=91?=
=?UTF-8?q?=E6=98=9F=E7=A9=BA]=20=E7=BF=BB=E9=A1=B5=E5=9F=BA=E5=87=86?=
=?UTF-8?q?=E7=BA=BF(=E9=81=BF=E5=85=8D=E7=BF=BB=E9=A1=B5=E9=A2=91?=
=?UTF-8?q?=E7=8E=87=E8=BF=87=E5=BF=AB=EF=BC=8C=E8=A7=A6=E5=8F=91=E7=BD=91?=
=?UTF-8?q?=E7=AB=99=E9=98=B2=E5=BE=A1)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index fded21f71..1192a0c74 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.1
+// @version 4.7.2
// @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)
@@ -1900,7 +1900,7 @@ function: {
replaceE: 'css;.pagewrap',
scrollE: 'css;.pagewrap',
scriptT: 2,
- scrollD: 1000
+ scrollD: 300
}
}, // 3DM
_3dmgame_list: {
@@ -1959,7 +1959,7 @@ function: {
insertP: ['css;.page_fenye', 1],
replaceE: 'css;.page_fenye',
scrollE: 'css;.page_fenye',
- scrollD: 1000
+ scrollD: 0
}
}, // 游侠网
ali213_list: {
@@ -1979,15 +1979,15 @@ function: {
}, // 游侠网 - 分类页
ali213_gl: {
host: 'gl.ali213.net',
- style: '.n_show_b {display: none !important;}',
+ style: '.n_show_b, a.morezjjump {display: none !important;}',
pager: {
type: 3,
nextL: 'css;a.next',
- pageE: 'css;.c-detail >*',
+ pageE: 'css;.c-detail > *',
insertP: ['css;.c-detail', 3],
replaceE: 'css;.page_fenye',
scrollE: 'css;.page_fenye',
- scrollD: 1000
+ scrollD: 200
}
}, // 游侠网 - 攻略
ali213_pic: {
@@ -2011,7 +2011,7 @@ function: {
insertP: ['css;.page_css', 1],
replaceE: 'css;.page_css',
scrollE: 'css;.page_css',
- scrollD: 1000
+ scrollD: 0
}
}, // 游民星空
gamersky_gl: {
@@ -2023,7 +2023,7 @@ function: {
replaceE: 'css;.page_css',
scrollE: 'css;.page_css',
forceHTTPS: true,
- scrollD: 1000
+ scrollD: 0
},
function: {
bF: gamersky_gl_bF
From af399fac06e7b7dfe6c2b2ad41e5601fc5cec4ce Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Thu, 17 Feb 2022 18:52:19 +0800
Subject: [PATCH 0002/1428] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E5=A4=9C?=
=?UTF-8?q?=E9=97=B4=E6=A8=A1=E5=BC=8F=E6=98=BE=E7=A4=BA=E6=95=88=E6=9E=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
GithubEnhanced-High-Speed-Download.user.js | 52 ++++++++++++++--------
1 file changed, 33 insertions(+), 19 deletions(-)
diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js
index 1b4d1e43e..b302a8f39 100644
--- a/GithubEnhanced-High-Speed-Download.user.js
+++ b/GithubEnhanced-High-Speed-Download.user.js
@@ -3,7 +3,7 @@
// @name:en Github Enhancement - High Speed Download
// @name:zh-CN Github 增强 - 高速下载
// @name:zh-TW Github 增強 - 高速下載
-// @version 1.8.3
+// @version 1.8.4
// @author X.I.U
// @description 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁)
// @description:en High-speed download of Git Clone/SSH, Release, Raw, Code(ZIP) and other files, project list file quick download (☁)
@@ -28,20 +28,7 @@
(function() {
'use strict';
- var backColor = '#ffffff', fontColor = '#888888';
- if (document.getElementsByTagName('html')[0].getAttribute('data-color-mode') === 'dark') { // 黑暗模式判断
- if (document.getElementsByTagName('html')[0].getAttribute('data-dark-theme') === 'dark_dimmed') {
- backColor = '#272e37'; fontColor = '#768390';
- } else {
- backColor = '#161a21'; fontColor = '#97a0aa';
- }
- } else if (document.getElementsByTagName('html')[0].getAttribute('data-color-mode') === 'auto') {
- if (window.getComputedStyle(document.body).backgroundColor === 'rgb(34, 39, 46)') {
- backColor = '#272e37'; fontColor = '#768390';
- } else if (window.getComputedStyle(document.body).backgroundColor === 'rgb(13, 17, 23)') {
- backColor = '#161a21'; fontColor = '#97a0aa';
- }
- }
+ var backColor = '#ffffff', fontColor = '#888888', menu_raw_fast = GM_getValue('xiu2_menu_raw_fast'), menu_menu_raw_fast_ID, menu_feedBack_ID;
const download_url = [
['https://pd.zwc365.com/seturl/https://github.com', '美国 1'],
['https://gh.xiu.workers.dev/https://github.com', '美国 2'],
@@ -52,7 +39,7 @@
['https://download.fastgit.org', '日本'],
['https://ghproxy.com/https://github.com', '韩国']
//['https://ghproxy.fsou.cc/https://github.com', '香港']
- ],
+ ],
clone_url = [
['https://gitclone.com', '中国浙江'],
['https://github.com.cnpmjs.org', '新加坡'],
@@ -79,10 +66,9 @@
'',
''
],
- style = ['padding:0 6px;margin-right: -1px;border-radius: 2px;background-color: '+backColor+';border-color: rgba(27, 31, 35, 0.1);font-size: 11px;color: '+fontColor+';'];
- var menu_raw_fast = GM_getValue('xiu2_menu_raw_fast'), menu_menu_raw_fast_ID, menu_feedBack_ID;
- if (menu_raw_fast == null){menu_raw_fast = 1; GM_setValue('xiu2_menu_raw_fast', 1)};
+ style = ['padding:0 6px; margin-right: -1px; border-radius: 2px; background-color: var(--XIU2-back-Color); border-color: rgba(27, 31, 35, 0.1); font-size: 11px; color: var(--XIU2-font-Color);'];
+ if (menu_raw_fast == null){menu_raw_fast = 1; GM_setValue('xiu2_menu_raw_fast', 1)};
registerMenuCommand();
// 注册脚本菜单
function registerMenuCommand() {
@@ -117,6 +103,7 @@
return ['0️⃣','1️⃣','2️⃣','3️⃣','4️⃣','5️⃣','6️⃣','7️⃣','8️⃣','9️⃣','🔟'][num]
}
+ colorMode();
addRelease(); // Release 加速
setTimeout(addDownloadZIP, 2000); // Download ZIP 加速
setTimeout(addGitClone, 2000); // Git Clone 加速
@@ -125,6 +112,7 @@
setTimeout(addRawDownLink, 2000); // 添加 Raw 下载链接(☁),延迟 2 秒执行,避免被 pjax 刷掉
document.addEventListener('pjax:success',function(){ // pjax 事件发生后
+ colorMode();
addRelease(); // Release 加速
setTimeout(addDownloadZIP, 2000); // Download ZIP 加速
setTimeout(addGitClone, 2000); // Git Clone 加速
@@ -340,6 +328,32 @@
}
+ // 适配白天/夜间主题模式
+ function colorMode() {
+ let style_Add;
+ if (document.getElementById('XIU2-Github')) {style_Add = document.getElementById('XIU2-Github')} else {style_Add = document.createElement('style'); style_Add.id = 'XIU2-Github'; style_Add.type = 'text/css';}
+ backColor = '#ffffff'; fontColor = '#888888';
+
+ if (document.getElementsByTagName('html')[0].getAttribute('data-color-mode') === 'dark') { // 如果是夜间模式
+ if (document.getElementsByTagName('html')[0].getAttribute('data-dark-theme') === 'dark_dimmed') {
+ backColor = '#272e37'; fontColor = '#768390';
+ } else {
+ backColor = '#161a21'; fontColor = '#97a0aa';
+ }
+ } else if (document.getElementsByTagName('html')[0].getAttribute('data-color-mode') === 'auto') { // 如果是自动模式
+ if (window.matchMedia('(prefers-color-scheme: dark)').matches || document.getElementsByTagName('html')[0].getAttribute('data-light-theme').indexOf('dark') > -1) { // 如果浏览器是夜间模式 或 白天模式是 dark 的情况
+ if (document.getElementsByTagName('html')[0].getAttribute('data-dark-theme') === 'dark_dimmed') {
+ backColor = '#272e37'; fontColor = '#768390';
+ } else if (document.getElementsByTagName('html')[0].getAttribute('data-dark-theme').indexOf('light') == -1) { // 排除夜间模式是 light 的情况
+ backColor = '#161a21'; fontColor = '#97a0aa';
+ }
+ }
+ }
+
+ document.lastElementChild.appendChild(style_Add).textContent = `.XIU2-RS a {--XIU2-back-Color: ${backColor}; --XIU2-font-Color: ${fontColor};}`;
+ }
+
+
// 自定义 urlchange 事件(用来监听 URL 变化)
function addUrlChangeEvent() {
history.pushState = ( f => function pushState(){
From 774fdee97f33f077cef1802f90e79439bf2f6504 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Fri, 18 Feb 2022 11:05:03 +0800
Subject: [PATCH 0003/1428] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[DlAndroid]=20?=
=?UTF-8?q?=E6=94=AF=E6=8C=81;=20=E4=BC=98=E5=8C=96=20[=E6=B7=BB=E5=8A=A0?=
=?UTF-8?q?=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95]=20=E5=8A=9F=E8=83=BD=20(?=
=?UTF-8?q?=E9=92=88=E5=AF=B9=E5=B7=B2=E7=BB=8F=E8=87=AA=E5=B8=A6=E8=AF=A5?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=9A=84=E7=BD=91=E7=AB=99)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 1192a0c74..36dfaeff3 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.2
+// @version 4.7.3
// @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)
@@ -4294,6 +4294,21 @@ function: {
bF: lrepacks_bF
}
},
+ dlandroid: {
+ host: 'dlandroid.com',
+ functionS: function() {if (indexOF('/cat/') || (lp === '/' && indexOF('?s=', 's'))) curSite = DBSite.dlandroid;},
+ pager: {
+ type: 1,
+ nextL: 'css;a.next.page-numbers',
+ pageE: 'css;div.post',
+ replaceE: 'css;.navigation',
+ scrollD: 1500
+ },
+ function: {
+ bF: src_bF,
+ pF: [0, 'img[data-src]', 'data-src']
+ }
+ }, // DlAndroid
winhelponline: {
host: 'www.winhelponline.com',
functionS: function() {if (lp == '/blog/') {curSite = DBSite.winhelponline;}},
@@ -7609,7 +7624,8 @@ function: {
url = url || curSite.pageUrl;
window.top.document.title = title;
window.top.document.xiu_nowUrl = curSite.pageUrl;
- window.top.history.pushState('xiu_history', title, url);
+ // 对于自带类似功能 或者覆盖了 history 原生函数的,则跳过
+ if (window.top.history.toString() === '[object History]') window.top.history.pushState('xiu_history', title, url);
}
// 插入