MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / replace

Method replace

scripts/libs/js-hook/index.js:506–508  ·  view source on GitHub ↗
(obj, hookMethods, fn, classHook, context, proxyHandler)

Source from the content-addressed store, hash-verified

504 /* Replace the function to be hooked, no longer run the source function,
505 and replace it with running other logic */
506 replace (obj, hookMethods, fn, classHook, context, proxyHandler) {
507 return this.hook(obj, hookMethods, fn, 'replace', classHook, context, proxyHandler)
508 }
509
510 /* Hook when the source function runs incorrectly */
511 error (obj, hookMethods, fn, classHook, context, proxyHandler) {

Callers 15

escapeHTMLFunction · 0.80
iFunction · 0.80
EFunction · 0.80
wFunction · 0.80
highlight.min.jsFile · 0.80
pFunction · 0.80
onDocumentEndFunction · 0.80
backupFunction · 0.80
numberWithCommasFunction · 0.80
runFunction · 0.80
removeCookies.jsFile · 0.80

Calls 1

hookMethod · 0.95

Tested by

no test coverage detected