N
N
newaitix2020-09-06 21:30:36
JavaScript
newaitix, 2020-09-06 21:30:36

How to replace the script without using extensions?

There is a wonderful Resource Override extension.
In this particular task, it works great.
But I can't use this extension in this task.
I need to replace 1 script that is loaded via script tag with data:text/javascript;charset=UTF-8;base64,....
Resource Override somehow does it.
I think most likely using the chrome object
Can someone tell me how this can be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2020-09-06
@Aetae

The chrome object is only accessible from extensions. For client js, resource spoofing is only possible through cache manipulation in the service-worker.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question