MCPcopy Create free account
hub / github.com/XIU2/UserScript / fobiddenBack

Function fobiddenBack

Lanzou-Enhanced.user.js:536–539  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

534
535 // 禁止浏览器返回(并绑定新的返回事件)
536 function fobiddenBack() {
537 history.pushState(null, null, document.URL);
538 window.addEventListener('popstate',backEvent)
539 }
540
541
542 // 允许浏览器返回

Callers 1

iframeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected