Find WebView.settings.javaScriptEnabled = true / setJavaScriptEnabled(true)

Proprietary

Enabling JavaScript inside a WebView is the precondition for the entire WebView attack surface — addJavascriptInterface exposure, XSS in cached HTML, prompts-as-UI-spoofs. Disable it unless you control the loaded content.

org.openrewrite.kotlin.security.FindWebViewJavaScriptEnabled$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.security.FindWebViewJavaScriptEnabled$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.