nw.js icon indicating copy to clipboard operation
nw.js copied to clipboard

Are there any way to modify body of content loaded into WebView?

Open Sunvas opened this issue 2 years ago • 3 comments

Are there support of something like https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webRequest/filterResponseData ?

Sunvas avatar May 20 '22 17:05 Sunvas

Are there any way to modify body of content loaded into WebView

Not sure what you mean - could you elaborate?

Are there support of something like https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webRequest/filterResponseData ?

It doesn't seem to be supported by Chrome.

ayushmanchhabra avatar Jul 14 '22 16:07 ayushmanchhabra

Not sure what you mean - could you elaborate?

Example: I want to cut all trackers or other data from the document being loaded.

Sunvas avatar Jul 14 '22 22:07 Sunvas

Chromium does not support this yet. I found two issues tracking it's progress though: https://bugs.chromium.org/p/chromium/issues/detail?id=487422&q=webRequest.filterResponseData&can=2 https://bugs.chromium.org/p/chromium/issues/detail?id=104058&q=webRequest.filterResponseData&can=2

Seems like there is a way to modify requests via the Devtools: https://bugs.chromium.org/p/chromium/issues/detail?id=487422#c29

ayushmanchhabra avatar Jul 29 '22 05:07 ayushmanchhabra