qt - QWebView: Only disable javascript coming from websites? -


I am currently writing a small browser, and want to interact with pages via javascript (e.g. Like-like-users).

However I want to disable javascript loading of webpages via QWebSettings . Now when I do something like this:

  settings = QWebSettings.globalSettings () settings.setAttribute (QWebSettings.JavascriptEnabled, False)   

Javascript from the web Is not working, but evaluate javascript or addToJavaScriptWindowObject of QWebFrame no longer does not work is. >

I believe that based on WebKitGettee, this javascript dismisses directly by using the Coeur Library.

Can I do something similar, as if to evaluate the copy of the user and somehow pull him for webwish? Although it does not seem like easy solution for me.

today I just

this means at least I do something like that I can:

    > Webview.page (). MainFrame () DocumentElement (). EvaluateJavaScript ("...")   

And it works fine.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -