你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/558941-disable-history-manipulation,源站連結 點此以跳轉

Disable History Manipulation

Disable history.pushState() and history.replaceState() on all sites


點此查看下載連結位址https://update.greasyfork.org.cn/scripts/558941/Disable%20History%20Manipulation.user.js

安装此脚本?
作者
smed79
日安装量
0
总安装量
7
评分
0 0 0
版本
1.0
创建于
2025-12-14
更新于
2025-12-14
大小
710 字节
许可证
GPLv3
适用于
所有网站

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.