Non-fixed-value Scripts
# Non-fixed-value Scripts
These scripts log all intercepted content when enabled.
| Hooked method | Original behavior |
|---|---|
fetch | Makes a network request |
JSON.stringify | Converts an object to a JSON string |
Promise | Handles asynchronous operations |
localStorage.clear | Clears localStorage |
sessionStorage.clear | Clears sessionStorage |
# Parameters
| Parameter | Description |
|---|---|
| Debugger | Pauses execution when the hook is triggered |
| Stack | Prints the call stack |
# Usage
Hook fetch and print the call stack:

The call was captured successfully:

# Frequently asked questions
# Why is there no console output after enabling the script?
console.log may have been disabled.
Try enabling hook log to prevent JavaScript from overwriting the logging method.

If there is still no output, contact the author with an example (WeChat: I-0xsdeo).