Disable history.pushState() and history.replaceState() on all sites
Disable History Manipulation blocks websites from altering your browser history through history.pushState() and history.replaceState(), a common tactic used by deceptive or malicious pages to trap users, fake navigation, or break the Back button. This lightweight script runs at document start to intercept these calls before site scripts execute, ensuring a consistent and predictable browsing experience while logging any blocked attempts to the console. Although some modern single‑page applications rely on these APIs for normal navigation, affected sites can easily be excluded through your userscript manager’s settings.