Skip to content

Commit

Permalink
chore: 🔖 Release 8.10.4
Browse files Browse the repository at this point in the history
  • Loading branch information
hymbz committed Jun 10, 2024
1 parent 20343c5 commit 719f82a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
12 changes: 5 additions & 7 deletions ComicRead.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name ComicRead
// @namespace ComicRead
// @version 8.10.3
// @version 8.10.4
// @description 为漫画站增加双页阅读、翻译等优化体验的增强功能。百合会——「记录阅读历史、自动签到等」、百合会新站、动漫之家——「解锁隐藏漫画」、E-Hentai——「匹配 nhentai 漫画」、nhentai——「彻底屏蔽漫画、自动翻页」、Yurifans——「自动签到」、拷贝漫画(copymanga)——「显示最后阅读记录」、PonpomuYuri、明日方舟泰拉记事社、禁漫天堂、漫画柜(manhuagui)、漫画DB(manhuadb)、动漫屋(dm5)、绅士漫画(wnacg)、mangabz、komiic、无限动漫、新新漫画、hitomi、Anchira、kemono、nekohouse、welovemanga
// @description:en Add enhanced features to the comic site for optimized experience, including dual-page reading and translation.
// @description:ru Добавляет расширенные функции для удобства на сайт, такие как двухстраничный режим и перевод.
Expand Down Expand Up @@ -6802,7 +6802,7 @@ const useFab = async initProps => {
var _tmpl$$1 = /*#__PURE__*/web.template(\`<h2>🥳 ComicRead 已更新到 v\`),
_tmpl$2 = /*#__PURE__*/web.template(\`<h3>修复\`),
_tmpl$3 = /*#__PURE__*/web.template(\`<ul><li><p>修复部分浏览器翻页后的图片渲染错误 </p></li><li><p>修复简易阅读模式在部分网站的图片排序错误\`);
_tmpl$3 = /*#__PURE__*/web.template(\`<ul><li>修复在 nicomanga 上失效的 bug\`);
/** 重命名配置项 */
const renameOption = async (name, list) => {
Expand Down Expand Up @@ -9805,12 +9805,10 @@ const main = require('main');
case 'weloma.art':
case 'welovemanga.one':
{
if (!main.querySelector('#listImgs')) break;
const imgSelector = '#listImgs img.chapter-img.chapter-img:not(.ls-is-cached)';
const isLoadingGifRe = /loading.*\.gif/;
if (!main.querySelector('#listImgs, .chapter-content')) break;
const getImgList = async () => {
const imgList = main.querySelectorAll(imgSelector).map(e => e.dataset.src?.trim() ?? e.dataset.original?.trim() ?? e.src);
if (imgList.every(url => !isLoadingGifRe.test(url))) return imgList;
const imgList = main.querySelectorAll('img.chapter-img:not(.ls-is-cached)').map(e => (e.dataset.src ?? e.dataset.srcset ?? e.dataset.original ?? e.src).trim());
if (imgList.length > 0 && imgList.every(url => !/loading.*\.gif/.test(url))) return imgList;
await main.sleep(500);
return getImgList();
};
Expand Down
9 changes: 8 additions & 1 deletion docs/.other/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@


## [8.10.4](https://github.com/hymbz/ComicReadScript/compare/v8.10.3...v8.10.4) (2024-06-10)


### Bug Fixes

* :bug: 修复在 nicomanga 上失效的 bug ([20343c5](https://github.com/hymbz/ComicReadScript/commit/20343c541fd69c29e5053aff18204432ee675925))

## [8.10.3](https://github.com/hymbz/ComicReadScript/compare/v8.10.2...v8.10.3) (2024-06-07)


Expand Down Expand Up @@ -1287,4 +1294,4 @@
### 修复

- 下载 Bug
- 上/下一话按钮显示位置错误的 Bug
- 上/下一话按钮显示位置错误的 Bug
5 changes: 2 additions & 3 deletions docs/.other/LatestChange.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
## [8.10.3](https://github.com/hymbz/ComicReadScript/compare/v8.10.2...v8.10.3) (2024-06-07)
## [8.10.4](https://github.com/hymbz/ComicReadScript/compare/v8.10.3...v8.10.4) (2024-06-10)


### Bug Fixes

* :bug: 修复部分浏览器翻页后的图片渲染错误 ([995315d](https://github.com/hymbz/ComicReadScript/commit/995315d97ad0fd6ede98b326b0a95e3889b19838)), closes [#169](https://github.com/hymbz/ComicReadScript/issues/169)
* :bug: 修复简易阅读模式在部分网站的图片排序错误 ([069c04e](https://github.com/hymbz/ComicReadScript/commit/069c04e5024d26e9da14d9333b5bb322003439ad))
* :bug: 修复在 nicomanga 上失效的 bug ([20343c5](https://github.com/hymbz/ComicReadScript/commit/20343c541fd69c29e5053aff18204432ee675925))
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ComicRead",
"version": "8.10.3",
"version": "8.10.4",
"description": "",
"author": "hymbz",
"license": "AGPL-3.0-or-later",
Expand Down

0 comments on commit 719f82a

Please sign in to comment.