Update 77mh.js

This commit is contained in:
Ftbom
2025-03-06 16:58:58 +08:00
committed by GitHub
parent 185b8b3a3d
commit 73c24a1836

View File

@@ -1,20 +1,20 @@
const mangayomiSources = [{ const mangayomiSources = [{
"name": "新新漫画", "name": "新新漫画",
"lang": "zh", "lang": "zh",
"baseUrl": "https://www.77mh.nl", "baseUrl": "http://www.77mh.xyz",
"apiUrl": "", "apiUrl": "",
"iconUrl": "https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/javascript/icon/zh.77mh.png", "iconUrl": "https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/javascript/icon/zh.77mh.png",
"typeSource": "single", "typeSource": "single",
"itemType": 0, "itemType": 0,
"isNsfw": false, "isNsfw": false,
"version": "0.0.25", "version": "0.0.3",
"apiUrl": "", "apiUrl": "",
"dateFormat": "", "dateFormat": "",
"dateFormatLocale": "", "dateFormatLocale": "",
"pkgName": "manga/src/zh/77mh.js" "pkgName": "manga/src/zh/77mh.js"
}]; }];
class DefaultExtension extends MProvider { class DefaultExtension extends MProvider {
StringResolve1(p, a, c, k, e, d) { StringResolve1(p, a, c, k, e, d) {
e = function(c) { e = function(c) {
return c.toString(36) return c.toString(36)
@@ -92,7 +92,7 @@ class DefaultExtension extends MProvider {
const mangas = []; const mangas = [];
for (const element of elements) { for (const element of elements) {
const title = element.selectFirst("h1 a").text.replace("<em>", "").replace("</em>", ""); const title = element.selectFirst("h1 a").text.replace("<em>", "").replace("</em>", "");
const url = element.selectFirst("h1 a").attr("href"); const url = "/" + element.selectFirst("h1 a").attr("href").split("/").slice(-1)[0];
const cover = element.selectFirst("img").attr("src"); const cover = element.selectFirst("img").attr("src");
mangas.push({ mangas.push({
name: title, name: title,
@@ -251,8 +251,8 @@ class DefaultExtension extends MProvider {
"summary": "", "summary": "",
"valueIndex": 0, "valueIndex": 0,
"entries": ["服务器1", "服务器2"], "entries": ["服务器1", "服务器2"],
"entryValues": ["https://picsh.77dm.top", "https://imgsh.dm365.top"], "entryValues": ["https://picsh.77dm.top", "https://imgsh.dm365.top", "https://hws.gdbyhtl.net"],
} }
}]; }];
} }
} }