Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/XIU2/UserScript
/ enableBack
Function
enableBack
Lanzou-Enhanced.user.js:543–546 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
541
542
// 允许浏览器返回
543
function
enableBack() {
544
history.go(-1);
545
window.removeEventListener(
'popstate'
,backEvent)
546
}
547
548
549
// 浏览器后退事件函数
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected