Skip to content

Commit dd7edde

Browse files
committed
chore: 🔖 Release 12.5.2
1 parent f728530 commit dd7edde

8 files changed

Lines changed: 3639 additions & 2665 deletions

ComicRead-AdGuard.user.js

Lines changed: 1187 additions & 875 deletions
Large diffs are not rendered by default.

ComicRead-jsDelivr.user.js

Lines changed: 1184 additions & 873 deletions
Large diffs are not rendered by default.

ComicRead.user.js

Lines changed: 1184 additions & 873 deletions
Large diffs are not rendered by default.

ComicReader.umd.d.ts

Lines changed: 55 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,45 @@ declare const areaArrayMap: {
6161
l: ArrayConfig;
6262
};
6363

64+
/** MangaImageTranslator 翻译配置 */
65+
type MitOptions = {
66+
/** 自定义服务器地址,为空则使用默认地址 */
67+
localUrl: string | undefined;
68+
detector: {
69+
detector: string;
70+
detection_size: string;
71+
box_threshold: number;
72+
unclip_ratio: number;
73+
};
74+
render: {
75+
direction: string;
76+
};
77+
translator: {
78+
translator: string;
79+
target_lang: string;
80+
};
81+
inpainter: {
82+
inpainter: string;
83+
inpainting_size: string;
84+
};
85+
mask_dilation_offset: number;
86+
};
87+
88+
/** Cotrans 翻译配置 */
89+
type CotransOptions = {
90+
detector: {
91+
detector: string;
92+
detection_size: string;
93+
};
94+
render: {
95+
direction: string;
96+
};
97+
translator: {
98+
translator: string;
99+
target_lang: string;
100+
};
101+
};
102+
64103
type Option = {
65104
/** 漫画方向 */
66105
dir: 'ltr' | 'rtl';
@@ -158,35 +197,16 @@ type Option = {
158197
};
159198
/** 翻译 */
160199
translation: {
161-
/** 翻译服务器 */
162-
server: 'disable' | 'selfhosted' | 'cotrans';
163-
/** 本地部署的项目 url */
164-
localUrl: string | undefined;
200+
/** 是否启用翻译 */
201+
enabled: boolean;
202+
/** 翻译器 */
203+
provider: 'manga-image-translator' | 'cotrans';
165204
/** 忽略缓存强制重试 */
166205
forceRetry: boolean;
167-
/** manga-image-translator 配置 */
168-
options: {
169-
detector: {
170-
detector: string;
171-
detection_size: string;
172-
box_threshold: number;
173-
unclip_ratio: number;
174-
};
175-
render: {
176-
direction: string;
177-
};
178-
translator: {
179-
translator: string;
180-
target_lang: string;
181-
};
182-
inpainter: {
183-
inpainter: string;
184-
inpainting_size: string;
185-
};
186-
mask_dilation_offset: number;
187-
};
188206
/** 只下载完成翻译的图片 */
189207
onlyDownloadTranslated: boolean;
208+
mit: MitOptions;
209+
cotrans: CotransOptions;
190210
};
191211
/** 自动滚动 */
192212
autoScroll: {
@@ -302,6 +322,16 @@ declare const showState: ShowState;
302322

303323
type State = typeof imgState & typeof showState & typeof propState & typeof optionState & typeof otherState;
304324

325+
type Response<T = any> = {
326+
readonly responseText: string;
327+
readonly response: T;
328+
readonly status: number;
329+
readonly statusText: string;
330+
};
331+
type ErrorResponse = {
332+
readonly error: string;
333+
} & Response;
334+
305335
type ComicImgData = Partial<ComicImg> & {
306336
src: string;
307337
};
@@ -330,16 +360,6 @@ type MangaProps = {
330360
editSettingList?: State['prop']['editSettingList'];
331361
} & Partial<State['prop']>;
332362

333-
type Response<T = any> = {
334-
readonly responseText: string;
335-
readonly response: T;
336-
readonly status: number;
337-
readonly statusText: string;
338-
};
339-
type ErrorResponse = {
340-
readonly error: string;
341-
} & Response;
342-
343363
type Request<TContext = object> = {
344364
method?: 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE';
345365
url: string;

ComicReader.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/.other/CHANGELOG.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
1-
# Changelog
2-
1+
# Changelog
2+
3+
## [12.5.2](https://github.com/hymbz/ComicReadScript/compare/v12.5.1...v12.5.2) (2026-04-21)
4+
5+
### Features
6+
7+
* :sparkles: 添加 kisslove (klz9.com) 站点支持 ([9b4bd54](https://github.com/hymbz/ComicReadScript/commit/9b4bd543a88055d9b92d51f8356c8e615e942355))
8+
9+
### Bug Fixes
10+
11+
* :bug: 修复 nhentai 改版后导致的失效 ([2a07c40](https://github.com/hymbz/ComicReadScript/commit/2a07c40e38f1c3e71c5433fb34ce2d88cabbd4d7))
12+
* :bug: 修复 PWA 在打开嵌套文件夹时没有按照文件路径排序的 bug ([04ed881](https://github.com/hymbz/ComicReadScript/commit/04ed88137d0e806910c55dcd617c7744b14b9acd)), closes [#309](https://github.com/hymbz/ComicReadScript/issues/309)
13+
* :bug: 修复简易模式下的顺序问题 ([82af9dc](https://github.com/hymbz/ComicReadScript/commit/82af9dcef9282d96451cf69a85d87cad75bb9e8f))
14+
* :bug: 在进行图片翻译前缩小尺寸过大的图片 ([334d800](https://github.com/hymbz/ComicReadScript/commit/334d800bca380390dd70d267d38335b962af76b9)), closes [#313](https://github.com/hymbz/ComicReadScript/issues/313)
15+
316
## [12.5.1](https://github.com/hymbz/ComicReadScript/compare/v12.5.0...v12.5.1) (2026-01-25)
417

518
### Bug Fixes
619

7-
* :bug: 修复绅士漫画显示错误 ([994f7bb](https://github.com/hymbz/ComicReadScript/commit/994f7bb3e599f8603f2f243657a6ff7abbf800c5)), closes [#316](https://github.com/hymbz/ComicReadScript/issues/316)
8-
20+
* :bug: 修复绅士漫画显示错误 ([994f7bb](https://github.com/hymbz/ComicReadScript/commit/994f7bb3e599f8603f2f243657a6ff7abbf800c5)), closes [#316](https://github.com/hymbz/ComicReadScript/issues/316)
21+
922
## [12.5.0](https://github.com/hymbz/ComicReadScript/compare/v12.4.1...v12.5.0) (2026-01-25)
1023

1124
### Features
@@ -2130,4 +2143,4 @@
21302143
### 修复
21312144

21322145
- 下载 Bug
2133-
- 上/下一话按钮显示位置错误的 Bug
2146+
- 上/下一话按钮显示位置错误的 Bug

docs/.other/LatestChange.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
## [12.5.1](https://github.com/hymbz/ComicReadScript/compare/v12.5.0...v12.5.1) (2026-01-25)
1+
## [12.5.2](https://github.com/hymbz/ComicReadScript/compare/v12.5.1...v12.5.2) (2026-04-21)
2+
3+
### Features
4+
5+
* :sparkles: 添加 kisslove (klz9.com) 站点支持 ([9b4bd54](https://github.com/hymbz/ComicReadScript/commit/9b4bd543a88055d9b92d51f8356c8e615e942355))
26

37
### Bug Fixes
48

5-
* :bug: 修复绅士漫画显示错误 ([994f7bb](https://github.com/hymbz/ComicReadScript/commit/994f7bb3e599f8603f2f243657a6ff7abbf800c5)), closes [#316](https://github.com/hymbz/ComicReadScript/issues/316)
9+
* :bug: 修复 nhentai 改版后导致的失效 ([2a07c40](https://github.com/hymbz/ComicReadScript/commit/2a07c40e38f1c3e71c5433fb34ce2d88cabbd4d7))
10+
* :bug: 修复 PWA 在打开嵌套文件夹时没有按照文件路径排序的 bug ([04ed881](https://github.com/hymbz/ComicReadScript/commit/04ed88137d0e806910c55dcd617c7744b14b9acd)), closes [#309](https://github.com/hymbz/ComicReadScript/issues/309)
11+
* :bug: 修复简易模式下的顺序问题 ([82af9dc](https://github.com/hymbz/ComicReadScript/commit/82af9dcef9282d96451cf69a85d87cad75bb9e8f))
12+
* :bug: 在进行图片翻译前缩小尺寸过大的图片 ([334d800](https://github.com/hymbz/ComicReadScript/commit/334d800bca380390dd70d267d38335b962af76b9)), closes [#313](https://github.com/hymbz/ComicReadScript/issues/313)

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.5.1",
3+
"version": "12.5.2",
44
"description": "为漫画站增加双页阅读、翻译等优化体验的增强功能的油猴脚本",
55
"author": "hymbz",
66
"license": "AGPL-3.0-or-later",

0 commit comments

Comments
 (0)