Compare commits

..

3 Commits

Author SHA1 Message Date
ee0a98ec33 [nhentai] fix cover 2025-08-03 17:26:29 +08:00
ccc157b4f2 Update urls. 2025-08-03 16:58:09 +08:00
f2aacf2baa [jm] Fix gif. 2025-08-03 16:53:12 +08:00
8 changed files with 30 additions and 10 deletions

View File

@@ -13,7 +13,7 @@ class Baihehui extends ComicSource {
minAppVersion = "1.4.0" minAppVersion = "1.4.0"
// update url // update url
url = "https://cdn.jsdelivr.net/gh/venera-app/venera-configs@main/baihehui.js" url = "https://git.nyne.dev/nyne/venera-configs/raw/branch/main/baihehui.js"
settings = { settings = {
domains: { domains: {

View File

@@ -4,7 +4,7 @@ class Comick extends ComicSource {
version = "1.1.1" version = "1.1.1"
minAppVersion = "1.4.0" minAppVersion = "1.4.0"
// update url // update url
url = "https://cdn.jsdelivr.net/gh/venera-app/venera-configs@main/comick.js" url = "https://git.nyne.dev/nyne/venera-configs/raw/branch/main/comick.js"
settings = { settings = {
domains: { domains: {

View File

@@ -27,7 +27,7 @@
"name": "nhentai", "name": "nhentai",
"fileName": "nhentai.js", "fileName": "nhentai.js",
"key": "nhentai", "key": "nhentai",
"version": "1.0.4" "version": "1.0.5"
}, },
{ {
"name": "紳士漫畫", "name": "紳士漫畫",
@@ -46,7 +46,7 @@
"name": "禁漫天堂", "name": "禁漫天堂",
"fileName": "jm.js", "fileName": "jm.js",
"key": "jm", "key": "jm",
"version": "1.2.0", "version": "1.2.1",
"description": "禁漫天堂漫畫源, 不能使用時請嘗試切換分流" "description": "禁漫天堂漫畫源, 不能使用時請嘗試切換分流"
}, },
{ {

5
jm.js
View File

@@ -7,7 +7,7 @@ class JM extends ComicSource {
// unique id of the source // unique id of the source
key = "jm" key = "jm"
version = "1.2.0" version = "1.2.1"
minAppVersion = "1.2.5" minAppVersion = "1.2.5"
@@ -767,7 +767,8 @@ class JM extends ComicSource {
} }
return { return {
headers: this.getImgHeaders(), headers: this.getImgHeaders(),
modifyImage: ` // gif 图片不需要修改
modifyImage: url.endsWith(".gif") ? null : `
let modifyImage = (image) => { let modifyImage = (image) => {
const num = ${num} const num = ${num}
let blockSize = Math.floor(image.height / num) let blockSize = Math.floor(image.height / num)

View File

@@ -14,7 +14,7 @@ class ManHuaGui extends ComicSource {
// update url // update url
url = url =
"https://cdn.jsdelivr.net/gh/venera-app/venera-configs@main/manhuagui.js"; "https://git.nyne.dev/nyne/venera-configs/raw/branch/main/manhuagui.js";
baseUrl = "https://www.manhuagui.com"; baseUrl = "https://www.manhuagui.com";

View File

@@ -13,7 +13,7 @@ class ManWaBa extends ComicSource {
minAppVersion = "1.4.0"; minAppVersion = "1.4.0";
// update url // update url
url = "https://cdn.jsdelivr.net/gh/venera-app/venera-configs@main/manwaba.js"; url = "https://git.nyne.dev/nyne/venera-configs/raw/branch/main/manwaba.js";
api = "https://www.manwaba.com/api/v1"; api = "https://www.manwaba.com/api/v1";

View File

@@ -7,7 +7,7 @@ class Nhentai extends ComicSource {
// unique id of the source // unique id of the source
key = "nhentai" key = "nhentai"
version = "1.0.4" version = "1.0.5"
minAppVersion = "1.0.0" minAppVersion = "1.0.0"
@@ -328,6 +328,25 @@ class Nhentai extends ComicSource {
/// single comic related /// single comic related
comic = { comic = {
/**
* [Optional] provide configs for a thumbnail loading
* @param url {string}
* @returns {ImageLoadingConfig | Promise<ImageLoadingConfig>}
*
* `ImageLoadingConfig.modifyImage` and `ImageLoadingConfig.onLoadFailed` will be ignored.
* They are not supported for thumbnails.
*/
onThumbnailLoad: (url) => {
if(url.startsWith("//")) {
url = "https:" + url
} else if(!url.startsWith("http")) {
url = "https://" + url
}
return {
url: url,
}
},
/** /**
* load comic info * load comic info
* @param id {string} * @param id {string}

View File

@@ -4,7 +4,7 @@ class YKMHSource extends ComicSource {
key = "ykmh" key = "ykmh"
version = "1.0.0" version = "1.0.0"
minAppVersion = "1.4.0" minAppVersion = "1.4.0"
url = "https://cdn.jsdelivr.net/gh/venera-app/venera-configs@main/ykmh.js" url = "https://git.nyne.dev/nyne/venera-configs/raw/branch/main/ykmh.js"
get baseUrl() { get baseUrl() {
return "https://www.ykmh.net"; return "https://www.ykmh.net";