you know what it is (#15175)

* you know what it is

* bump version

* filter out the loading animation
This commit is contained in:
beerpsi 2023-01-30 10:18:43 +07:00 committed by GitHub
parent 36a6bcdd0c
commit a155c1ce0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 11 deletions

View File

@ -89,22 +89,16 @@ class ConstellarScans : MangaThemesia("Constellar Scans", "https://constellarsca
override fun pageListParse(document: Document): List<Page> {
val interfaceName = randomString()
document.body().prepend(
document.selectFirst("article").append(
"""
<script>
const observer = new MutationObserver(mutations => {
mutations.forEach((mutation) => {
[...mutation.addedNodes].filter(c => c instanceof HTMLImageElement &&
(
c.classList.contains("ts-main-image") ||
c.dataset.index !== undefined ||
c.dataset.server !== undefined
)
)
mutations.forEach(mutation => {
[...mutation.addedNodes].filter(c => c instanceof HTMLImageElement && c.src.slice(-3) !== "svg")
.forEach(c => window.$interfaceName.passSingleImage(c.src))
})
})
observer.observe(document.body, { childList: true, subtree: true })
observer.observe(document.querySelector("article"), { childList: true, subtree: true })
</script>
""".trimIndent()
)

View File

@ -25,7 +25,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
SingleLang("Azure Scans", "https://azuremanga.com", "en", overrideVersionCode = 1),
SingleLang("Boosei", "https://boosei.net", "id", overrideVersionCode = 2),
SingleLang("Clayrer", "https://clayrer.net", "es"),
SingleLang("Constellar Scans", "https://constellarscans.com", "en", isNsfw = true, overrideVersionCode = 11),
SingleLang("Constellar Scans", "https://constellarscans.com", "en", isNsfw = true, overrideVersionCode = 12),
SingleLang("Cosmic Scans", "https://cosmicscans.com", "en", overrideVersionCode = 1),
SingleLang("Diskus Scan", "https://diskusscan.com", "pt-BR", overrideVersionCode = 7),
SingleLang("Dojing.net", "https://dojing.net", "id", isNsfw = true, className = "DojingNet"),