This code added is for some extension that blocks tachiyomi, by tricking it that it was sent by a android browser, nothing major changes,
@@ -100,7 +100,9 @@ class WebViewActivity : BaseActivity<WebviewActivityBinding>() {
binding.webview.webViewClient = object : WebViewClientCompat() {
override fun shouldOverrideUrlCompat(view: WebView, url: String): Boolean {
- view.loadUrl(url)
+ val android_browser: MutableMap<String, String> = HashMap()
+ android_browser["X-Requested-With"] = "com.android.browser"
+ view.loadUrl(url,android_browser)
return true
}