Created
June 27, 2024 20:17
-
-
Save M507/07a234cc1dd75ef41a49222b5a8600ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ObjC.choose(ObjC.classes['WKWebView'], { | |
onMatch: function (wk) { | |
console.log('onMatch: ', wk); | |
console.log('URL: ', wk.URL().toString()); | |
console.log('javaScriptEnabled: ', wk.configuration().preferences().javaScriptEnabled()); | |
console.log('allowFileAccessFromFileURLs: ', | |
wk.configuration().preferences().valueForKey_('allowFileAccessFromFileURLs').toString()); | |
console.log('hasOnlySecureContent: ', wk.hasOnlySecureContent().toString()); | |
console.log('allowUniversalAccessFromFileURLs: ', | |
wk.configuration().valueForKey_('allowUniversalAccessFromFileURLs').toString()); | |
}, | |
onComplete: function () { | |
console.log('done for WKWebView!'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment