mirror of
https://github.com/gorhill/uBlock.git
synced 2024-07-05 11:37:01 +02:00
Hopefully explain the trusted-replace-fetch-response scriptlet
parent
66a6843b70
commit
5fd15f9a49
|
@ -59,6 +59,7 @@
|
||||||
- [refresh-defuser](#refresh-defuserjs-)
|
- [refresh-defuser](#refresh-defuserjs-)
|
||||||
- [overlay-buster](#overlay-busterjs-)
|
- [overlay-buster](#overlay-busterjs-)
|
||||||
- [alert-buster](#alert-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.
|
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
|
## Defuser scriptlets
|
||||||
|
|
Loading…
Reference in New Issue
Block a user