Shinigami: remove X-Requested-With header (#19505)

Remove header
This commit is contained in:
Secozzi 2023-12-31 15:17:25 +00:00 committed by GitHub
parent 607ac27b09
commit e9d0420f81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 14 deletions

View File

@ -7,7 +7,6 @@ import okhttp3.Headers
import okhttp3.OkHttpClient
import org.jsoup.nodes.Element
import java.util.concurrent.TimeUnit
import kotlin.random.Random
class Shinigami : Madara("Shinigami", "https://shinigami.moe", "id") {
// moved from Reaper Scans (id) to Shinigami (id)
@ -26,18 +25,6 @@ class Shinigami : Madara("Shinigami", "https://shinigami.moe", "id") {
.add("Sec-Fetch-Mode", "navigate")
.add("Sec-Fetch-Site", "same-origin")
.add("Upgrade-Insecure-Requests", "1")
.add("X-Requested-With", randomString)
private fun generateRandomString(length: Int): String {
val charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ.abcdefghijklmnopqrstuvwxyz.0123456789"
return (1..length)
.map { charset.random() }
.joinToString("")
}
private val randomLength = Random.Default.nextInt(13, 21)
private val randomString = generateRandomString(randomLength)
override val mangaSubString = "semua-series"

View File

@ -436,7 +436,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Shayami", "https://shayami.com", "es"),
SingleLang("Shiba Manga", "https://shibamanga.com", "en"),
SingleLang("Shield Manga", "https://shieldmanga.io", "en", overrideVersionCode = 3),
SingleLang("Shinigami", "https://shinigami.moe", "id", isNsfw = false, overrideVersionCode = 8),
SingleLang("Shinigami", "https://shinigami.moe", "id", isNsfw = false, overrideVersionCode = 9),
SingleLang("Shooting Star Scans", "https://shootingstarscans.com", "en"),
SingleLang("ShoujoHearts", "https://shoujohearts.com", "en", overrideVersionCode = 2),
SingleLang("Sinensis Scan", "https://sinensisscan.net", "pt-BR", pkgName = "sinensis", overrideVersionCode = 6),