MCPcopy Index your code
hub / github.com/FastForwardTeam/FastForward / transparentProperty

Function transparentProperty

src/js/injection_script.js:24–30  ·  view source on GitHub ↗
(name, valFunc)

Source from the content-addressed store, hash-verified

22const ODP = (t, p, o) => { try { Object.defineProperty(t, p, o) } catch (e) { console.trace("[FastForward] Couldn't define", p) } },
23 setTimeout = window.setTimeout, setInterval = window.setInterval, URL = window.URL, docSetAttribute = document.documentElement.setAttribute.bind(document.documentElement),
24 transparentProperty = (name, valFunc) => {
25 let real
26 ODP(window, name, {
27 set: _ => real = _,
28 get: () => valFunc(real)
29 })
30 },
31 isGoodLink = link => {
32 if (typeof link !== "string" || (link.split("#")[0] == location.href.split("#")[0] && !isGoodLink_allowSelf)) {
33 return false

Callers 1

Calls 1

ODPFunction · 0.85

Tested by

no test coverage detected