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

Function reloadAndSkipScripts

src/background/utils/preinject.js:120–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119const skippedTabs = {};
120export const reloadAndSkipScripts = async tab => {
121 if (!tab) tab = await getActiveTab();
122 const tabId = tab.id;
123 const bag = cache.get(getKey(tab.url, true));
124 const reg = IS_FIREFOX && bag && unregisterScriptFF(bag);
125 skippedTabs[tabId] = 1;
126 if (reg) await reg;
127 clearFrameData(tabId);
128 await browser.tabs.reload(tabId);
129};
130
131const OPT_HANDLERS = {
132 [BLACKLIST]: cache.destroy,

Callers

nothing calls this directly

Calls 5

getActiveTabFunction · 0.90
getKeyFunction · 0.85
unregisterScriptFFFunction · 0.85
clearFrameDataFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected