MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / toggleFastFirefoxInject

Function toggleFastFirefoxInject

src/background/utils/preinject.js:362–369  ·  view source on GitHub ↗
(enable)

Source from the content-addressed store, hash-verified

360}
361
362function toggleFastFirefoxInject(enable) {
363 ffInject = enable;
364 if (!enable) {
365 cache.some(v => { unregisterScriptFF(v); /* must return falsy! */ });
366 } else if (!xhrInject) {
367 cache.destroy(); // nuking the cache so that CSAPI_REG is created for subsequent injections
368 }
369}
370
371/** @param {chrome.webRequest.WebRequestHeadersDetails} info */
372function onSendHeaders(info) {

Callers

nothing calls this directly

Calls 1

unregisterScriptFFFunction · 0.85

Tested by

no test coverage detected