Injecting Javascript into all webpages.
Unsolved
QtWebEngine
-
Hey all! Looking for a way to inject a javascript eyetracking library into all webpages opened in my qt webengine based browser. I've tried adding it as a source file to my project, but that prevents me from building the project, as the library calls onto window, document and other objects not usually available to Javascript in Qt.
After that I've tried to inject it using webengine script like this:
WebEngineScript{ injectionPoint: WebEngineScript.DocumentReady name: "GazeCloudApi" sourceUrl: "/home/tylnesh/GazeCloudAPI.js" worldId: WebEngineScript.MainWorld }
but I always get this error message:
Can't open user script QUrl("qrc:/home/tylnesh/GazeCloudAPI.js")