Disable History Manipulation

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
smed79
今日安裝
0
安裝總數
6
評價
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.