MCPcopy Create free account
hub / github.com/ChinaGodMan/UserScripts / getCurrentURL

Function getCurrentURL

github-commit-viewer/github-commit-viewer.user.js:343–343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

341 window.MozMutationObserver
342 // 获取当前页面的 URL
343 const getCurrentURL = () => location.href
344 getCurrentURL.previousURL = getCurrentURL()
345 // 创建 MutationObserver 实例,监听 DOM 变化
346 const observer = new MutationObserver((mutations, observer) => {

Callers 1

watchUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected