(name, valFunc)
| 22 | const 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 |
no test coverage detected