Skip to content

Commit

Permalink
chore: 🔖 Release 9.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hymbz committed Aug 23, 2024
1 parent 46b06a9 commit 8a252e4
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 21 deletions.
19 changes: 10 additions & 9 deletions ComicRead-AdGuard.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name ComicRead
// @namespace ComicRead
// @version 9.7.1
// @version 9.7.2
// @description 为漫画站增加双页阅读、翻译等优化体验的增强功能。百合会(记录阅读历史、自动签到等)、百合会新站、动漫之家(解锁隐藏漫画)、E-Hentai(关联 nhentai、快捷收藏、标签染色、识别广告页等)、nhentai(彻底屏蔽漫画、无限滚动)、Yurifans(自动签到)、拷贝漫画(copymanga)(显示最后阅读记录)、PonpomuYuri、明日方舟泰拉记事社、禁漫天堂、漫画柜(manhuagui)、漫画DB(manhuadb)、动漫屋(dm5)、绅士漫画(wnacg)、mangabz、komiic、无限动漫、新新漫画、hitomi、koharu、kemono、nekohouse、welovemanga
// @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.
// @description:ru Добавляет расширенные функции для удобства на сайт, такие как двухстраничный режим и перевод.
Expand Down Expand Up @@ -7420,7 +7420,7 @@ const request = async (url, details, retryNum = 0, errorNum = 0) => {
try {
// 虽然 GM_xmlhttpRequest 有 fetch 选项,但在 stay 上不太稳定
// 为了支持 ios 端只能自己实现一下了
if (details?.fetch ?? (/^(\\/|blob:)/.test(url) || url.startsWith(window.location.origin))) {
if (details?.fetch ?? (url.startsWith('/') || url.startsWith(window.location.origin))) {
const res = await fetch(url, {
method: 'GET',
headers,
Expand Down Expand Up @@ -7509,12 +7509,15 @@ const MdFileDownload = ((props = {}) => (() => {
return _el$;
})());
const Accept = 'image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8';
/** 下载按钮 */
const DownloadButton = () => {
const [statu, setStatu] = solidJs.createSignal('button.download');
const handleDownload = async () => {
const headers = {
Accept: 'image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8',
'User-Agent': navigator.userAgent,
Referer: window.location.href
};
const fileData = {};
const {
imgList
Expand All @@ -7530,9 +7533,7 @@ const DownloadButton = () => {
let fileName;
try {
const res = await request(url, {
headers: {
Accept
},
headers,
responseType: 'blob',
errorText: \`\${helper.t('alert.download_failed')}: \${index}\`
});
Expand Down Expand Up @@ -7892,7 +7893,7 @@ const handleVersionUpdate = async () => {
_el$.firstChild;
web.insert(_el$, () => GM.info.script.version, null);
return _el$;
})(), web.template(\`<h3>修复\`)(), web.template(\`<ul><li>修复 kemono 自动进入阅读模式设置失效的 bug\`)(), web.createComponent(VersionTip, {
})(), web.template(\`<h3>修复\`)(), web.template(\`<ul><li>修复部分网站无法下载漫画的 bug\`)(), web.createComponent(VersionTip, {
v1: version,
v2: '9.5.0',
get children() {
Expand Down Expand Up @@ -10781,7 +10782,7 @@ const helper = require('helper');

// #[禁漫天堂](https://18comic.vip)
case 'jmcomic.me':
case '18comic-c104.vip':
case '18comic-c104.me':
case '18comic.org':
case '18comic.vip':
{
Expand Down
19 changes: 10 additions & 9 deletions ComicRead.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name ComicRead
// @namespace ComicRead
// @version 9.7.1
// @version 9.7.2
// @description 为漫画站增加双页阅读、翻译等优化体验的增强功能。百合会(记录阅读历史、自动签到等)、百合会新站、动漫之家(解锁隐藏漫画)、E-Hentai(关联 nhentai、快捷收藏、标签染色、识别广告页等)、nhentai(彻底屏蔽漫画、无限滚动)、Yurifans(自动签到)、拷贝漫画(copymanga)(显示最后阅读记录)、PonpomuYuri、明日方舟泰拉记事社、禁漫天堂、漫画柜(manhuagui)、漫画DB(manhuadb)、动漫屋(dm5)、绅士漫画(wnacg)、mangabz、komiic、无限动漫、新新漫画、hitomi、koharu、kemono、nekohouse、welovemanga
// @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.
// @description:ru Добавляет расширенные функции для удобства на сайт, такие как двухстраничный режим и перевод.
Expand Down Expand Up @@ -7354,7 +7354,7 @@ const request = async (url, details, retryNum = 0, errorNum = 0) => {
try {
// 虽然 GM_xmlhttpRequest 有 fetch 选项,但在 stay 上不太稳定
// 为了支持 ios 端只能自己实现一下了
if (details?.fetch ?? (/^(\\/|blob:)/.test(url) || url.startsWith(window.location.origin))) {
if (details?.fetch ?? (url.startsWith('/') || url.startsWith(window.location.origin))) {
const res = await fetch(url, {
method: 'GET',
headers,
Expand Down Expand Up @@ -7443,12 +7443,15 @@ const MdFileDownload = ((props = {}) => (() => {
return _el$;
})());
const Accept = 'image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8';
/** 下载按钮 */
const DownloadButton = () => {
const [statu, setStatu] = solidJs.createSignal('button.download');
const handleDownload = async () => {
const headers = {
Accept: 'image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8',
'User-Agent': navigator.userAgent,
Referer: window.location.href
};
const fileData = {};
const {
imgList
Expand All @@ -7464,9 +7467,7 @@ const DownloadButton = () => {
let fileName;
try {
const res = await request(url, {
headers: {
Accept
},
headers,
responseType: 'blob',
errorText: \`\${helper.t('alert.download_failed')}: \${index}\`
});
Expand Down Expand Up @@ -7826,7 +7827,7 @@ const handleVersionUpdate = async () => {
_el$.firstChild;
web.insert(_el$, () => GM.info.script.version, null);
return _el$;
})(), web.template(\`<h3>修复\`)(), web.template(\`<ul><li>修复 kemono 自动进入阅读模式设置失效的 bug\`)(), web.createComponent(VersionTip, {
})(), web.template(\`<h3>修复\`)(), web.template(\`<ul><li>修复部分网站无法下载漫画的 bug\`)(), web.createComponent(VersionTip, {
v1: version,
v2: '9.5.0',
get children() {
Expand Down Expand Up @@ -10715,7 +10716,7 @@ const helper = require('helper');

// #[禁漫天堂](https://18comic.vip)
case 'jmcomic.me':
case '18comic-c104.vip':
case '18comic-c104.me':
case '18comic.org':
case '18comic.vip':
{
Expand Down
7 changes: 7 additions & 0 deletions docs/.other/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@


## [9.7.2](https://github.com/hymbz/ComicReadScript/compare/v9.7.1...v9.7.2) (2024-08-23)


### Bug Fixes

* :bug: 修复部分网站无法下载漫画的 bug ([46b06a9](https://github.com/hymbz/ComicReadScript/commit/46b06a9617c1257a22ca7a3c256e5f74dba32702))

## [9.7.1](https://github.com/hymbz/ComicReadScript/compare/v9.7.0...v9.7.1) (2024-08-19)


Expand Down
4 changes: 2 additions & 2 deletions docs/.other/LatestChange.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## [9.7.1](https://github.com/hymbz/ComicReadScript/compare/v9.7.0...v9.7.1) (2024-08-19)
## [9.7.2](https://github.com/hymbz/ComicReadScript/compare/v9.7.1...v9.7.2) (2024-08-23)


### Bug Fixes

* :bug: 修复 kemono 自动进入阅读模式设置失效的 bug ([5c552a6](https://github.com/hymbz/ComicReadScript/commit/5c552a62e5c8dcca9f344bb28275b3b0053d9bb2)), closes [#181](https://github.com/hymbz/ComicReadScript/issues/181)
* :bug: 修复部分网站无法下载漫画的 bug ([46b06a9](https://github.com/hymbz/ComicReadScript/commit/46b06a9617c1257a22ca7a3c256e5f74dba32702))
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "comic-read",
"version": "9.7.1",
"version": "9.7.2",
"description": "",
"author": "hymbz",
"license": "AGPL-3.0-or-later",
Expand Down

0 comments on commit 8a252e4

Please sign in to comment.