mirror of
https://github.com/venera-app/venera-configs.git
synced 2025-09-27 08:27:24 +00:00
ehentai: fix normal thumbnails
This commit is contained in:
@@ -710,14 +710,10 @@ class Ehentai extends ComicSource {
|
|||||||
}
|
}
|
||||||
images.push(url)
|
images.push(url)
|
||||||
}
|
}
|
||||||
for(let e of document.querySelectorAll("div.gt200 > a > div").map((e) => e.children[0])) {
|
for(let e of document.querySelectorAll("div.gt200 > a > div")) {
|
||||||
let style = e.attributes['style'];
|
let style = e.attributes['style'];
|
||||||
let r = style.split("background:transparent url(")[1]
|
let r = style.split("background:transparent url(")[1]
|
||||||
let url = r.split(")")[0]
|
let url = r.split(")")[0]
|
||||||
if(r.includes('px')) {
|
|
||||||
let position = Number(r.split(') -')[1].split('px')[0])
|
|
||||||
url += `@x=${position}-${position + 100}`
|
|
||||||
}
|
|
||||||
images.push(url)
|
images.push(url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user