diff --git a/README.md b/README.md index d314ea8f..39751317 100644 --- a/README.md +++ b/README.md @@ -214,6 +214,8 @@ Cotrans 也有自己的油猴脚本 —— 「[Cotrans 漫画/图片翻译器](h ![eh快捷收藏-列表页](/docs/public/eh快捷收藏-列表页.webp) +> 使用 `鼠标中键` 点击或按住 `ctrl`、`shift`、`alt` 再点击可以调出原本的收藏弹窗 + ### 快捷键翻页 在漫画列表页和详情页增加通过左右方向键翻页的功能。 diff --git a/docs/index.md b/docs/index.md index e9ab5bcc..fd11f84d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -214,6 +214,8 @@ Cotrans 也有自己的油猴脚本 —— 「[Cotrans 漫画/图片翻译器](h ![eh快捷收藏-列表页](https://comic-read-docs.pages.dev/eh快捷收藏-列表页.webp) +> 使用 `鼠标中键` 点击或按住 `ctrl`、`shift`、`alt` 再点击可以调出原本的收藏弹窗 + ### 快捷键翻页 在漫画列表页和详情页增加通过左右方向键翻页的功能。 diff --git "a/docs/public/eh\345\277\253\346\215\267\346\224\266\350\227\217-\350\257\246\346\203\205\351\241\265.webp" "b/docs/public/eh\345\277\253\346\215\267\346\224\266\350\227\217-\350\257\246\346\203\205\351\241\265.webp" index e6b44585..c0a452a0 100644 Binary files "a/docs/public/eh\345\277\253\346\215\267\346\224\266\350\227\217-\350\257\246\346\203\205\351\241\265.webp" and "b/docs/public/eh\345\277\253\346\215\267\346\224\266\350\227\217-\350\257\246\346\203\205\351\241\265.webp" differ diff --git a/src/site/ehentai.tsx b/src/site/ehentai.tsx index 6a0578e2..d3448de0 100644 --- a/src/site/ehentai.tsx +++ b/src/site/ehentai.tsx @@ -174,10 +174,15 @@ const addQuickFavorite = ( }; // 将原本的收藏按钮改为切换显示快捷收藏夹 + const rawClick = favoriteButton.onclick as (ev: MouseEvent) => unknown; favoriteButton.onclick = null; - favoriteButton.addEventListener('click', async (e) => { + favoriteButton.addEventListener('mousedown', async (e) => { e.stopPropagation(); e.preventDefault(); + + if (e.shiftKey || e.ctrlKey || e.altKey || e.buttons === 4) + return rawClick.call(favoriteButton, e); + renderDom(); setShow((val) => !val); if (show()) await updateFavorite();