mirror of
https://github.com/venera-app/venera-configs.git
synced 2025-09-27 00:27:23 +00:00
Compare commits
3 Commits
f4bc304d1b
...
ee0a98ec33
Author | SHA1 | Date | |
---|---|---|---|
ee0a98ec33 | |||
ccc157b4f2 | |||
f2aacf2baa |
@@ -13,7 +13,7 @@ class Baihehui extends ComicSource {
|
||||
minAppVersion = "1.4.0"
|
||||
|
||||
// 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 = {
|
||||
domains: {
|
||||
|
@@ -4,7 +4,7 @@ class Comick extends ComicSource {
|
||||
version = "1.1.1"
|
||||
minAppVersion = "1.4.0"
|
||||
// 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 = {
|
||||
domains: {
|
||||
|
@@ -27,7 +27,7 @@
|
||||
"name": "nhentai",
|
||||
"fileName": "nhentai.js",
|
||||
"key": "nhentai",
|
||||
"version": "1.0.4"
|
||||
"version": "1.0.5"
|
||||
},
|
||||
{
|
||||
"name": "紳士漫畫",
|
||||
@@ -46,7 +46,7 @@
|
||||
"name": "禁漫天堂",
|
||||
"fileName": "jm.js",
|
||||
"key": "jm",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"description": "禁漫天堂漫畫源, 不能使用時請嘗試切換分流"
|
||||
},
|
||||
{
|
||||
|
5
jm.js
5
jm.js
@@ -7,7 +7,7 @@ class JM extends ComicSource {
|
||||
// unique id of the source
|
||||
key = "jm"
|
||||
|
||||
version = "1.2.0"
|
||||
version = "1.2.1"
|
||||
|
||||
minAppVersion = "1.2.5"
|
||||
|
||||
@@ -767,7 +767,8 @@ class JM extends ComicSource {
|
||||
}
|
||||
return {
|
||||
headers: this.getImgHeaders(),
|
||||
modifyImage: `
|
||||
// gif 图片不需要修改
|
||||
modifyImage: url.endsWith(".gif") ? null : `
|
||||
let modifyImage = (image) => {
|
||||
const num = ${num}
|
||||
let blockSize = Math.floor(image.height / num)
|
||||
|
@@ -14,7 +14,7 @@ class ManHuaGui extends ComicSource {
|
||||
|
||||
// update 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";
|
||||
|
||||
|
@@ -13,7 +13,7 @@ class ManWaBa extends ComicSource {
|
||||
minAppVersion = "1.4.0";
|
||||
|
||||
// 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";
|
||||
|
||||
|
21
nhentai.js
21
nhentai.js
@@ -7,7 +7,7 @@ class Nhentai extends ComicSource {
|
||||
// unique id of the source
|
||||
key = "nhentai"
|
||||
|
||||
version = "1.0.4"
|
||||
version = "1.0.5"
|
||||
|
||||
minAppVersion = "1.0.0"
|
||||
|
||||
@@ -328,6 +328,25 @@ class Nhentai extends ComicSource {
|
||||
|
||||
/// single comic related
|
||||
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
|
||||
* @param id {string}
|
||||
|
2
ykmh.js
2
ykmh.js
@@ -4,7 +4,7 @@ class YKMHSource extends ComicSource {
|
||||
key = "ykmh"
|
||||
version = "1.0.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() {
|
||||
return "https://www.ykmh.net";
|
||||
|
Reference in New Issue
Block a user