parent
d741e353e7
commit
fec86f2276
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'ReadComicOnline'
|
extName = 'ReadComicOnline'
|
||||||
extClass = '.Readcomiconline'
|
extClass = '.Readcomiconline'
|
||||||
extVersionCode = 21
|
extVersionCode = 22
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -214,13 +214,13 @@ class Readcomiconline : ConfigurableSource, ParsedHttpSource() {
|
||||||
rguardUrl = document.selectFirst("script[src*='rguard.min.js']")?.absUrl("src")
|
rguardUrl = document.selectFirst("script[src*='rguard.min.js']")?.absUrl("src")
|
||||||
}
|
}
|
||||||
|
|
||||||
val script = document.selectFirst("script:containsData(lstImages.push)")?.data()
|
val script = document.selectFirst("script:containsData(beau)")?.data()
|
||||||
?: throw Exception("Failed to find image URLs")
|
?: throw Exception("Failed to find image URLs")
|
||||||
|
|
||||||
val images = script.substring(
|
val images = script.substring(
|
||||||
0,
|
0,
|
||||||
BEAU_INDEX_REGEX.find(script)!!.range.last + 1,
|
BEAU_INDEX_REGEX.find(script)!!.range.last + 1,
|
||||||
) + "lstImages;"
|
) + LIST_VARIABLE.find(script)!!.groupValues[1] + ";"
|
||||||
|
|
||||||
return QuickJs.create().use { qjs ->
|
return QuickJs.create().use { qjs ->
|
||||||
qjs.execute(rguardBytecode)
|
qjs.execute(rguardBytecode)
|
||||||
|
@ -389,6 +389,7 @@ class Readcomiconline : ConfigurableSource, ParsedHttpSource() {
|
||||||
private const val SERVER_PREF = "serverpref"
|
private const val SERVER_PREF = "serverpref"
|
||||||
|
|
||||||
private val BEAU_INDEX_REGEX = Regex("""beau\([^)]+\);""")
|
private val BEAU_INDEX_REGEX = Regex("""beau\([^)]+\);""")
|
||||||
|
private val LIST_VARIABLE = Regex("""beau\((\w+)""")
|
||||||
|
|
||||||
private val DISABLE_JS_SCRIPT = """
|
private val DISABLE_JS_SCRIPT = """
|
||||||
const handler = {
|
const handler = {
|
||||||
|
|
Loading…
Reference in New Issue