MCPcopy Index your code
hub / github.com/darkreader/darkreader / pdf

Method pdf

src/background/extension.ts:332–332  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

330 }
331
332 const pdf = async () => isPDF(frameURL || await TabManager.getActiveTabURL());
333 if (((__CHROMIUM_MV2__ || __CHROMIUM_MV3__) && await scriptPDF(tabId!, frameId!)) || await pdf()) {
334 Extension.changeSettings({enableForPDF: !UserStorage.settings.enableForPDF});
335 } else {

Callers

nothing calls this directly

Calls 2

isPDFFunction · 0.90
getActiveTabURLMethod · 0.80

Tested by

no test coverage detected