diff --git a/app/src/main/java/org/matrix/chromext/utils/Url.kt b/app/src/main/java/org/matrix/chromext/utils/Url.kt index 7cc024a..492307c 100644 --- a/app/src/main/java/org/matrix/chromext/utils/Url.kt +++ b/app/src/main/java/org/matrix/chromext/utils/Url.kt @@ -75,7 +75,8 @@ val invalidUserScriptUrls = mutableListOf() fun isUserScript(url: String?, path: String? = null): Boolean { if (url == null) return false - if (url.endsWith(".user.js")) { + if (url.endsWith(".user.js") || + (Chrome.isEdge && url.endsWith(".js") && url.startsWith("file://"))) { if (invalidUserScriptUrls.contains(url)) return false invalidUserScriptDomains.forEach { if (url.startsWith("https://" + it) == true) return false } return true