Z
Z
zencd2019-03-29 12:28:33
Google Chrome
zencd, 2019-03-29 12:28:33

Chrome ext: how to replace page text at the HTTP communication stage?

Suppose a tab is opened in Chrome, the contents of the URL are loaded, and the DOM is built.
Task: by extension to intercept the exchange of bytes with the server and replace the server's response with your own.
Is it possible?
There are content scripts, but then the HOUSE will already be built, it is impossible to cancel the construction of the original HOUSE like that, the scripts on the page will start working - I want to prevent all this. There is a webRequest , but there you can listen to the maximum content, not change it (AFAIK).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
CityCat4, 2019-03-29
@CityCat4

You can intercept - if you are satisfied with the porridge from the ciphertext :) But what will you do with it? https was invented specifically to prevent this from happening.

A
Alexander, 2019-03-29
@NeiroNx

This can only be done at the proxy level.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question