hs.webview.usercontent.new(name) -> usercontentControllerObject
hs.webview.new
constructor in order to tie the webview to this content controller. All new windows which are created from this parent webview will also use this controller.hs.webview.usercontent:setCallback
for more information about the message port.hs.webview.usercontent:injectScript(scriptTable) -> usercontentControllerObject
hs.webview.usercontent:removeAllScripts() -> usercontentControllerObject
hs.webview.usercontent.userScripts()
first so you can recreate the scripts you want to keep.hs.webview.usercontent.userScripts()
first so you can recreate the scripts you want to keep.hs.webview.usercontent:setCallback(fn) -> usercontentControllerObject
hs.webview.usercontent:userScripts() -> array