Skip to content

Commit 5c00c74

Browse files
committed
chore: 🔖 Release 12.1.1
1 parent f7c802f commit 5c00c74

6 files changed

Lines changed: 39 additions & 28 deletions

File tree

ComicRead-AdGuard.user.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name ComicRead
33
// @namespace ComicRead
4-
// @version 12.1.0
4+
// @version 12.1.1
55
// @description 为漫画站增加双页阅读、翻译等优化体验的增强功能。百合会(记录阅读历史、自动签到等)、百合会新站、动漫之家(解锁隐藏漫画)、E-Hentai(关联外站、快捷收藏、标签染色、识别广告页等)、nhentai(彻底屏蔽漫画、无限滚动)、Yurifans(自动签到)、拷贝漫画(copymanga)(显示最后阅读记录、解锁隐藏漫画)、Pixiv、再漫画、明日方舟泰拉记事社、禁漫天堂、漫画柜(manhuagui)、动漫屋(dm5)、绅士漫画(wnacg)、mangabz、komiic、MangaDex、NoyAcg、無限動漫、熱辣漫畫、hitomi、SchaleNetwork、kemono、nekohouse、welovemanga、HentaiZap、最前線、Tachidesk
66
// @description:en Add enhanced features to the comic site for optimized experience, including dual-page reading and translation. E-Hentai (Associate nhentai, Quick favorite, Colorize tags, Floating tag list, etc.) | nhentai (Totally block comics, Auto page turning) | hitomi | Anchira | kemono | nekohouse | welovemanga.
77
// @description:ru Добавляет расширенные функции для удобства на сайт, такие как двухстраничный режим и перевод.
@@ -29,6 +29,7 @@
2929
// @match *://mangacopy.com/*
3030
// @match *://www.mangacopy.com/*
3131
// @match *://www.pixiv.net/*
32+
// @match *://www.zaimanhua.com/*
3233
// @match *://manhua.zaimanhua.com/*
3334
// @match *://m.zaimanhua.com/*
3435
// @match *://terra-historicus.hypergryph.com/*
@@ -8157,7 +8158,8 @@ const getQrCode = (img, width, height) => {
81578158
const text = new TextDecoder().decode(Uint8Array.from(binaryData));
81588159
mainFn.log(\`检测到二维码: \${text}\`);
81598160
return text;
8160-
} catch {
8161+
} catch (error) {
8162+
mainFn.log(error);
81618163
return undefined;
81628164
}
81638165
};
@@ -8876,8 +8878,8 @@ const web = require('solid-js/web');
88768878
const helper = require('helper');
88778879
const main = require('main');
88788880

8879-
const prevRe = /^(?:上一?(?:[章話话]|章节)|prev|prev chapter|前の章)$/i;
8880-
const nextRe = /^(?:下一?(?:[章話话]|章节)|next|next chapter|次の章)$/i;
8881+
const prevRe = /^上一?(?:[章話话]|章节)$|^(?:prev|previous)(?:\\s+chapter)?$|^前の章$/i;
8882+
const nextRe = /^下一?(?:[章話话]|章节)$|^next(?:\\s+chapter)?$|^次の章$/i;
88818883
const getChapterSwitch = () => {
88828884
let onPrev;
88838885
let onNext;
@@ -9947,7 +9949,7 @@ const handleVersionUpdate = async () => {
99479949
var _el$ = web.template(\`<h2>🥳 ComicRead 已更新到 v\`)();
99489950
web.insert(_el$, () => GM.info.script.version, null);
99499951
return _el$;
9950-
})(), web.template(\`<h3>新增\`)(), web.template(\`<ul><li><p>尽量在下载时保持原文件名 </p></li><li><p>增加站点 最前線 的支持\`)(), web.template(\`<h3>修复\`)(), web.template(\`<ul><li><p>修复 AdGuard 版和 jsDelivr 版资源链接错误导致无法运行的 bug </p></li><li><p>修复 ehentai 匹配 hitomi 功能在 CG 类画廊上未启用的 bug </p></li><li><p>修复开启 AdGuard 后脚本在 hitomi 上无法运行的 bug\`)(), web.createComponent(solidJs.Show, {
9952+
})(), web.template(\`<h3>修复\`)(), web.template(\`<ul><li><p>修复识别广告功能未生效的 bug </p></li><li><p>修复再漫画部分漫画未正确加载的 bug\`)(), web.createComponent(solidJs.Show, {
99519953
get when() {
99529954
return versionLt(version, '12');
99539955
},
@@ -10502,6 +10504,7 @@ exports.useSpeedDial = useSpeedDial;
1050210504
if (!importModule.has(moduleName)) importModule.set(moduleName, handleCode(getResource(moduleName)));
1050310505
return `moduleMap['${moduleName}']`;
1050410506
});
10507+
const moduleCode = handleCode(code);
1050510508
let workerCode = `const moduleMap = {};\n`;
1050610509
for (const [moduleName, code] of importModule) {
1050710510
workerCode += `
@@ -10516,7 +10519,7 @@ moduleMap['${moduleName}'] = {};
1051610519
}
1051710520
workerCode += `
1051810521
const exports = {};
10519-
${handleCode(code)}
10522+
${moduleCode}
1052010523
moduleMap['Comlink'].expose(exports);`;
1052110524
const codeUrl = URL.createObjectURL(new Blob([workerCode], {
1052210525
type: 'text/javascript'
@@ -14089,6 +14092,7 @@ const buildChapters = async (comicName, hiddenType) => {
1408914092

1409014093
// #[再漫画](https://manhua.zaimanhua.com/)
1409114094
// test: https://manhua.zaimanhua.com/view/heimaohemonvdeketang/64175/133789
14095+
case 'www.zaimanhua.com':
1409214096
case 'manhua.zaimanhua.com':
1409314097
{
1409414098
const getImgList = () => unsafeWindow.__NUXT__.data.getChapters?.data?.chapterInfo?.page_url;

ComicRead-jsDelivr.user.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name ComicRead
33
// @namespace ComicRead
4-
// @version 12.1.0
4+
// @version 12.1.1
55
// @description 为漫画站增加双页阅读、翻译等优化体验的增强功能。百合会(记录阅读历史、自动签到等)、百合会新站、动漫之家(解锁隐藏漫画)、E-Hentai(关联外站、快捷收藏、标签染色、识别广告页等)、nhentai(彻底屏蔽漫画、无限滚动)、Yurifans(自动签到)、拷贝漫画(copymanga)(显示最后阅读记录、解锁隐藏漫画)、Pixiv、再漫画、明日方舟泰拉记事社、禁漫天堂、漫画柜(manhuagui)、动漫屋(dm5)、绅士漫画(wnacg)、mangabz、komiic、MangaDex、NoyAcg、無限動漫、熱辣漫畫、hitomi、SchaleNetwork、kemono、nekohouse、welovemanga、HentaiZap、最前線、Tachidesk
66
// @description:en Add enhanced features to the comic site for optimized experience, including dual-page reading and translation. E-Hentai (Associate nhentai, Quick favorite, Colorize tags, Floating tag list, etc.) | nhentai (Totally block comics, Auto page turning) | hitomi | Anchira | kemono | nekohouse | welovemanga.
77
// @description:ru Добавляет расширенные функции для удобства на сайт, такие как двухстраничный режим и перевод.
@@ -8089,7 +8089,8 @@ const getQrCode = (img, width, height) => {
80898089
const text = new TextDecoder().decode(Uint8Array.from(binaryData));
80908090
mainFn.log(\`检测到二维码: \${text}\`);
80918091
return text;
8092-
} catch {
8092+
} catch (error) {
8093+
mainFn.log(error);
80938094
return undefined;
80948095
}
80958096
};
@@ -8808,8 +8809,8 @@ const web = require('solid-js/web');
88088809
const helper = require('helper');
88098810
const main = require('main');
88108811

8811-
const prevRe = /^(?:上一?(?:[章話话]|章节)|prev|prev chapter|前の章)$/i;
8812-
const nextRe = /^(?:下一?(?:[章話话]|章节)|next|next chapter|次の章)$/i;
8812+
const prevRe = /^上一?(?:[章話话]|章节)$|^(?:prev|previous)(?:\\s+chapter)?$|^前の章$/i;
8813+
const nextRe = /^下一?(?:[章話话]|章节)$|^next(?:\\s+chapter)?$|^次の章$/i;
88138814
const getChapterSwitch = () => {
88148815
let onPrev;
88158816
let onNext;
@@ -9879,7 +9880,7 @@ const handleVersionUpdate = async () => {
98799880
var _el$ = web.template(\`<h2>🥳 ComicRead 已更新到 v\`)();
98809881
web.insert(_el$, () => GM.info.script.version, null);
98819882
return _el$;
9882-
})(), web.template(\`<h3>新增\`)(), web.template(\`<ul><li><p>尽量在下载时保持原文件名 </p></li><li><p>增加站点 最前線 的支持\`)(), web.template(\`<h3>修复\`)(), web.template(\`<ul><li><p>修复 AdGuard 版和 jsDelivr 版资源链接错误导致无法运行的 bug </p></li><li><p>修复 ehentai 匹配 hitomi 功能在 CG 类画廊上未启用的 bug </p></li><li><p>修复开启 AdGuard 后脚本在 hitomi 上无法运行的 bug\`)(), web.createComponent(solidJs.Show, {
9883+
})(), web.template(\`<h3>修复\`)(), web.template(\`<ul><li><p>修复识别广告功能未生效的 bug </p></li><li><p>修复再漫画部分漫画未正确加载的 bug\`)(), web.createComponent(solidJs.Show, {
98839884
get when() {
98849885
return versionLt(version, '12');
98859886
},
@@ -10434,6 +10435,7 @@ exports.useSpeedDial = useSpeedDial;
1043410435
if (!importModule.has(moduleName)) importModule.set(moduleName, handleCode(getResource(moduleName)));
1043510436
return `moduleMap['${moduleName}']`;
1043610437
});
10438+
const moduleCode = handleCode(code);
1043710439
let workerCode = `const moduleMap = {};\n`;
1043810440
for (const [moduleName, code] of importModule) {
1043910441
workerCode += `
@@ -10448,7 +10450,7 @@ moduleMap['${moduleName}'] = {};
1044810450
}
1044910451
workerCode += `
1045010452
const exports = {};
10451-
${handleCode(code)}
10453+
${moduleCode}
1045210454
moduleMap['Comlink'].expose(exports);`;
1045310455
const codeUrl = URL.createObjectURL(new Blob([workerCode], {
1045410456
type: 'text/javascript'
@@ -14021,6 +14023,7 @@ const buildChapters = async (comicName, hiddenType) => {
1402114023

1402214024
// #[再漫画](https://manhua.zaimanhua.com/)
1402314025
// test: https://manhua.zaimanhua.com/view/heimaohemonvdeketang/64175/133789
14026+
case 'www.zaimanhua.com':
1402414027
case 'manhua.zaimanhua.com':
1402514028
{
1402614029
const getImgList = () => unsafeWindow.__NUXT__.data.getChapters?.data?.chapterInfo?.page_url;

ComicRead.user.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name ComicRead
33
// @namespace ComicRead
4-
// @version 12.1.0
4+
// @version 12.1.1
55
// @description 为漫画站增加双页阅读、翻译等优化体验的增强功能。百合会(记录阅读历史、自动签到等)、百合会新站、动漫之家(解锁隐藏漫画)、E-Hentai(关联外站、快捷收藏、标签染色、识别广告页等)、nhentai(彻底屏蔽漫画、无限滚动)、Yurifans(自动签到)、拷贝漫画(copymanga)(显示最后阅读记录、解锁隐藏漫画)、Pixiv、再漫画、明日方舟泰拉记事社、禁漫天堂、漫画柜(manhuagui)、动漫屋(dm5)、绅士漫画(wnacg)、mangabz、komiic、MangaDex、NoyAcg、無限動漫、熱辣漫畫、hitomi、SchaleNetwork、kemono、nekohouse、welovemanga、HentaiZap、最前線、Tachidesk
66
// @description:en Add enhanced features to the comic site for optimized experience, including dual-page reading and translation. E-Hentai (Associate nhentai, Quick favorite, Colorize tags, Floating tag list, etc.) | nhentai (Totally block comics, Auto page turning) | hitomi | Anchira | kemono | nekohouse | welovemanga.
77
// @description:ru Добавляет расширенные функции для удобства на сайт, такие как двухстраничный режим и перевод.
@@ -8089,7 +8089,8 @@ const getQrCode = (img, width, height) => {
80898089
const text = new TextDecoder().decode(Uint8Array.from(binaryData));
80908090
mainFn.log(\`检测到二维码: \${text}\`);
80918091
return text;
8092-
} catch {
8092+
} catch (error) {
8093+
mainFn.log(error);
80938094
return undefined;
80948095
}
80958096
};
@@ -8808,8 +8809,8 @@ const web = require('solid-js/web');
88088809
const helper = require('helper');
88098810
const main = require('main');
88108811

8811-
const prevRe = /^(?:上一?(?:[章話话]|章节)|prev|prev chapter|前の章)$/i;
8812-
const nextRe = /^(?:下一?(?:[章話话]|章节)|next|next chapter|次の章)$/i;
8812+
const prevRe = /^上一?(?:[章話话]|章节)$|^(?:prev|previous)(?:\\s+chapter)?$|^前の章$/i;
8813+
const nextRe = /^下一?(?:[章話话]|章节)$|^next(?:\\s+chapter)?$|^次の章$/i;
88138814
const getChapterSwitch = () => {
88148815
let onPrev;
88158816
let onNext;
@@ -9879,7 +9880,7 @@ const handleVersionUpdate = async () => {
98799880
var _el$ = web.template(\`<h2>🥳 ComicRead 已更新到 v\`)();
98809881
web.insert(_el$, () => GM.info.script.version, null);
98819882
return _el$;
9882-
})(), web.template(\`<h3>新增\`)(), web.template(\`<ul><li><p>尽量在下载时保持原文件名 </p></li><li><p>增加站点 最前線 的支持\`)(), web.template(\`<h3>修复\`)(), web.template(\`<ul><li><p>修复 AdGuard 版和 jsDelivr 版资源链接错误导致无法运行的 bug </p></li><li><p>修复 ehentai 匹配 hitomi 功能在 CG 类画廊上未启用的 bug </p></li><li><p>修复开启 AdGuard 后脚本在 hitomi 上无法运行的 bug\`)(), web.createComponent(solidJs.Show, {
9883+
})(), web.template(\`<h3>修复\`)(), web.template(\`<ul><li><p>修复识别广告功能未生效的 bug </p></li><li><p>修复再漫画部分漫画未正确加载的 bug\`)(), web.createComponent(solidJs.Show, {
98839884
get when() {
98849885
return versionLt(version, '12');
98859886
},
@@ -10434,6 +10435,7 @@ exports.useSpeedDial = useSpeedDial;
1043410435
if (!importModule.has(moduleName)) importModule.set(moduleName, handleCode(getResource(moduleName)));
1043510436
return `moduleMap['${moduleName}']`;
1043610437
});
10438+
const moduleCode = handleCode(code);
1043710439
let workerCode = `const moduleMap = {};\n`;
1043810440
for (const [moduleName, code] of importModule) {
1043910441
workerCode += `
@@ -10448,7 +10450,7 @@ moduleMap['${moduleName}'] = {};
1044810450
}
1044910451
workerCode += `
1045010452
const exports = {};
10451-
${handleCode(code)}
10453+
${moduleCode}
1045210454
moduleMap['Comlink'].expose(exports);`;
1045310455
const codeUrl = URL.createObjectURL(new Blob([workerCode], {
1045410456
type: 'text/javascript'
@@ -14021,6 +14023,7 @@ const buildChapters = async (comicName, hiddenType) => {
1402114023

1402214024
// #[再漫画](https://manhua.zaimanhua.com/)
1402314025
// test: https://manhua.zaimanhua.com/view/heimaohemonvdeketang/64175/133789
14026+
case 'www.zaimanhua.com':
1402414027
case 'manhua.zaimanhua.com':
1402514028
{
1402614029
const getImgList = () => unsafeWindow.__NUXT__.data.getChapters?.data?.chapterInfo?.page_url;

docs/.other/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [12.1.1](https://github.com/hymbz/ComicReadScript/compare/v12.1.0...v12.1.1) (2025-08-18)
4+
5+
### Bug Fixes
6+
7+
* :bug: 修复识别广告功能未生效的 bug ([eaa7904](https://github.com/hymbz/ComicReadScript/commit/eaa79047c1b79c1212a01e9ce33b67262b97ae9c))
8+
* :bug: 修复再漫画部分漫画未正确加载的 bug ([82b18d6](https://github.com/hymbz/ComicReadScript/commit/82b18d61b49623519f1522dab7a7fe00f6b0c32b))
9+
310
## [12.1.0](https://github.com/hymbz/ComicReadScript/compare/v12.0.0...v12.1.0) (2025-08-17)
411

512
### Features

docs/.other/LatestChange.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
## [12.1.0](https://github.com/hymbz/ComicReadScript/compare/v12.0.0...v12.1.0) (2025-08-17)
2-
3-
### Features
4-
5-
* :sparkles: 尽量在下载时保持原文件名 ([7bc48d1](https://github.com/hymbz/ComicReadScript/commit/7bc48d168888b1022156078b246f20f71aeced84))
6-
* :sparkles: 增加站点 最前線 的支持 ([52493e8](https://github.com/hymbz/ComicReadScript/commit/52493e850a2b859d7b11c37d9bc121a9a4563023)), closes [#263](https://github.com/hymbz/ComicReadScript/issues/263)
1+
## [12.1.1](https://github.com/hymbz/ComicReadScript/compare/v12.1.0...v12.1.1) (2025-08-18)
72

83
### Bug Fixes
94

10-
* :bug: 修复 AdGuard 版和 jsDelivr 版资源链接错误导致无法运行的 bug ([42a068a](https://github.com/hymbz/ComicReadScript/commit/42a068a2c0bb4d88556c4d15d4280302a83f6bae)), closes [#273](https://github.com/hymbz/ComicReadScript/issues/273)
11-
* :bug: 修复 ehentai 匹配 hitomi 功能在 CG 类画廊上未启用的 bug ([13d45ae](https://github.com/hymbz/ComicReadScript/commit/13d45ae22d97197b51eb2ae67f89d277b2e06ace)), closes [#243](https://github.com/hymbz/ComicReadScript/issues/243)
12-
* :bug: 修复开启 AdGuard 后脚本在 hitomi 上无法运行的 bug ([81b75e8](https://github.com/hymbz/ComicReadScript/commit/81b75e8816a8a5264d39e761c094343e53233d46)), closes [#261](https://github.com/hymbz/ComicReadScript/issues/261)
5+
* :bug: 修复识别广告功能未生效的 bug ([eaa7904](https://github.com/hymbz/ComicReadScript/commit/eaa79047c1b79c1212a01e9ce33b67262b97ae9c))
6+
* :bug: 修复再漫画部分漫画未正确加载的 bug ([82b18d6](https://github.com/hymbz/ComicReadScript/commit/82b18d61b49623519f1522dab7a7fe00f6b0c32b))

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hymbz/comic-read-script",
3-
"version": "12.1.0",
3+
"version": "12.1.1",
44
"description": "为漫画站增加双页阅读、翻译等优化体验的增强功能的油猴脚本",
55
"author": "hymbz",
66
"license": "AGPL-3.0-or-later",

0 commit comments

Comments
 (0)