Skip to content

Commit

Permalink
Release ChromeXt v3.8.1
Browse files Browse the repository at this point in the history
Current update fixes bugs related to the changes in the chromium source
code base. No new features are implemented yet. Here is the summary:

1. Fix content menu hook and crashes for Samsung browsers
2. Fix support of huge UserScripts for Chromium browsers
3. Suport Cốc Cốc and Mi (global version) browsers
  • Loading branch information
JingMatrix committed Mar 12, 2024
1 parent 72b8462 commit 45dbb14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ android {
defaultConfig {
applicationId = "org.matrix.chromext"
minSdk = 21
targetSdk = 34
versionCode = 14
versionName = "3.8.0"
targetSdk = 35
versionCode = 15
versionName = "3.8.1"
}

buildFeatures { buildConfig = true }
Expand Down
9 changes: 5 additions & 4 deletions app/src/main/java/org/matrix/chromext/MainHook.kt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class MainHook : IXposedHookLoadPackage, IXposedHookZygoteInit {
WebViewHook.WebView = Chrome.load("com.miui.webkit.WebView")
WebViewHook.ViewClient = Chrome.load("com.android.browser.tab.TabWebViewClient")
WebViewHook.ChromeClient = Chrome.load("com.android.browser.tab.TabWebChromeClient")
initHooks(WebViewHook, ContextMenuHook)
hookWebView()
return
}

Expand All @@ -110,9 +110,10 @@ class MainHook : IXposedHookLoadPackage, IXposedHookZygoteInit {
if (WebViewHook.ChromeClient == null || WebViewHook.ViewClient == null) return
if (WebViewHook.WebView == null) {
runCatching {
WebViewHook.WebView = WebView::class.java
WebView.setWebContentsDebuggingEnabled(true)
}
WebViewHook.WebView = WebView::class.java
WebView.setWebContentsDebuggingEnabled(true)
}
.onFailure { if (BuildConfig.DEBUG) Log.ex(it) }
}
initHooks(WebViewHook, ContextMenuHook)
}
Expand Down

0 comments on commit 45dbb14

Please sign in to comment.