1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-01 02:02:29 +02:00

Hopefully explain the trusted-replace-fetch-response scriptlet

iam-py-test 2023-08-05 14:08:50 -04:00
parent 66a6843b70
commit 5fd15f9a49

@ -59,6 +59,7 @@
- [refresh-defuser](#refresh-defuserjs-)
- [overlay-buster](#overlay-busterjs-)
- [alert-buster](#alert-busterjs-)
- [trusted-replace-fetch-response](#trusted-replace-fetch-responsejs) [Trusted]
***
@ -1181,6 +1182,17 @@ Experimental, gets rid of overlay dialogs, works for ~30s after page load. Prefe
Disables [_`alert()`_](https://developer.mozilla.org/en-US/docs/Web/API/Window/alert) dialog boxes by redirecting messages to console.
***
### trusted-replace-fetch-response.js
Modifies the response of all fetch requests in order to replace part of the text with an arbitrary string.<sup>[[1]](https://github.com/gorhill/uBlock/commit/82a7d11f78b0b51d742040b620b99bde62b73798)</sup>
Run without any arguments to log requests.
Parameters:
- pattern
The pattern to replace. Can be a regex
- replacement
The string to replace _pattern_ with.
***
## Defuser scriptlets