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

Method getTabInfo

src/background/extension.ts:680–687  ·  view source on GitHub ↗
(tabURL: string)

Source from the content-addressed store, hash-verified

678 //----------------------
679
680 private static getTabInfo(tabURL: string): Pick<TabInfo, 'isInDarkList' | 'isProtected'> {
681 const isInDarkList = ConfigManager.isURLInDarkList(tabURL);
682 const isProtected = !canInjectScript(tabURL);
683 return {
684 isInDarkList,
685 isProtected,
686 };
687 }
688
689 private static getTabMessage = (tabURL: string, url: string, isTopFrame: boolean, topFrameHasDarkTheme?: boolean): TabData => {
690 const settings = UserStorage.settings;

Callers 2

getActiveTabInfoMethod · 0.80
ExtensionClass · 0.80

Calls 2

canInjectScriptFunction · 0.90
isURLInDarkListMethod · 0.80

Tested by

no test coverage detected