Disable Forward

Prevent of abuse window.history.forward web api

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
0sJsEFtvegtH
1日のインストール数
0
累計インストール数
56
評価
0 0 0
バージョン
1
作成日
2021/09/28
更新日
2021/09/28
大きさ
13.9KB
ライセンス
不明
対象サイト
すべてのサイト

Disable Forward: One-Way Road

Potential performance cost

Only use if often click into malware websites from search engine

What's this

Many malware websites are abusing the window.history.forward web API
The API intends to simulate user click on browser forward navigation button

These websites use javascript to listen on the navigation back event,
call forward() in the event, when clicking on the back button,
the browser will forward immediately so the user can not leave the website

This will usually result in lost navigation history in the end:
must close the entire tab to leave

Disable Forward: One-Way Road script override forward()
to a dummy function that does nothing
so malware websites can't use this approach to stop the user from leaving anymore