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

Function backToTop

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

Source from the content-addressed store, hash-verified

577
578 // 快捷返回上级(右键点击 网页右侧/下方 空白处)
579 function backToTop() {
580 mainframe.document.getElementById('container').oncontextmenu = mainframe.document.body.oncontextmenu = function(e){
581 if (e.target == this) {
582 e.preventDefault();
583 backEvent();
584 }
585 }
586 }
587
588
589 // 监听 XMLHttpRequest 事件并执行

Callers

nothing calls this directly

Calls 1

backEventFunction · 0.85

Tested by

no test coverage detected