Locate Page Redirect Code
# Locate Page Redirect Code
# Description
Written by CC11001100. Original script: https://github.com/JSREI/page-redirect-code-location-hook.
When a website redirects, this script triggers a debugger statement. This helps you quickly locate the JavaScript responsible, then manually replace that code to bypass the redirect.
# When to use it
Use this script to pause a website's redirect. A redirect triggers the script's debugger statement, for example:

Follow the call stack to the redirect code, then replace the JavaScript with a version that removes it:

Remove the redirect code:
The redirect will no longer occur.
# Notes
Open DevTools with F12 before using this script.
Enabling this script does not remove redirect code. It only helps you locate it.