hymbz / ComicReadScript

为漫画站增加双页阅读模式及优化使用体验。
https://comic-read.pages.dev/
GNU Affero General Public License v3.0
554 stars 26 forks source link

[Bug]: Kemono.su full image selector changed #128

Closed EnergoStalin closed 6 months ago

EnergoStalin commented 6 months ago

Should be either .post__thumbnail a or .post__thumbnail > figure > a.

https://github.com/hymbz/ComicReadScript/blob/4fe87d9928ca0ac086529e79db4b4742da2c3162/src/index.ts#L521

EnergoStalin commented 6 months ago

Ah and also they changed domain to kemono.su not sure globally tho

https://github.com/hymbz/ComicReadScript/blob/4fe87d9928ca0ac086529e79db4b4742da2c3162/src/index.ts#L516

EnergoStalin commented 6 months ago

Works again with this patch

diff --git a/ComicRead.user.js b/ComicRead.user.js
index 755c9d3..b8fb0df 100644
--- a/ComicRead.user.js
+++ b/ComicRead.user.js
@@ -8584,11 +8584,12 @@ const main = require('main');
       }

     // #kemono
+    case 'kemono.su':
     case 'kemono.party':
       {
         options = {
           name: 'kemono',
-          getImgList: () => main.querySelectorAll('.post__thumbnail > a').map(e => e.href),
+          getImgList: () => main.querySelectorAll('.post__thumbnail a').map(e => e.href),
           initOptions: {
             autoShow: false,
             option: {