From afea7a6c99cd6c4ec83b9507e4d4ff0d595be63d Mon Sep 17 00:00:00 2001 From: Zion <62723933+jinzong53@users.noreply.github.com> Date: Wed, 23 Jul 2025 10:15:26 +0800 Subject: [PATCH] Add a new resource from ykmh (#107) * add new source from comick * fix some code * fix gif load and comic list info(none-type/chapter/volume) * add some comick hidden tags * revise coding error in file * info updata time * fix no-EN error * add new function - Multi-language comic selection support - Added comic recommendations - Fixed empty chapter return bug - Resolved tag click issues - Optimized data processing * Optimize network request Remove redundant requests and prevent async deadlocks * Update comick.js * new small comic source from baihehui * Fixed some bugs and added some sorting methods * Fixed some bugs and added some sorting methods * Add a new resource from ykmh --- index.json | 6 + ykmh.js | 883 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 889 insertions(+) create mode 100644 ykmh.js diff --git a/index.json b/index.json index b5dee4a..e46014e 100644 --- a/index.json +++ b/index.json @@ -79,5 +79,11 @@ "fileName": "comick.js", "key": "comick", "version": "1.1.0" + }, + { + "name": "优酷漫画", + "fileName": "ykmh.js", + "key": "ykmh", + "version": "1.0.0" } ] diff --git a/ykmh.js b/ykmh.js new file mode 100644 index 0000000..0e1faa3 --- /dev/null +++ b/ykmh.js @@ -0,0 +1,883 @@ +/** @type {import('./_venera_.js')} */ +class YKMHSource extends ComicSource { + name = "优酷漫画" + key = "ykmh" + version = "1.0.0" + minAppVersion = "1.4.0" + url = "https://cdn.jsdelivr.net/gh/venera-app/venera-configs@main/ykmh.js" + + get baseUrl() { + return "https://www.ykmh.net"; + } + + explore = [ + { + title: "优酷漫画", + type: "multiPartPage", + + load: async (page) => { + let res = await Network.get("https://www.ykmh.net") + + if (res.status !== 200) { + throw `Invalid status code: ${res.status}` + } + + function parseHotCarousel(html) { + let hotComics = [] + let carouselPattern = /
\s*[^<\/a>\s*