Dark Reader Chrome and Firefox extension
This report summarizes scanner evidence for darkreader/darkreader, a TypeScript project with 22,532 GitHub stars. SynthScan examined 55,884 lines of code across 624 source files, recording 84 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 1.6 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 84 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 79 finding(s).
Which changes need focused human review? 84 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 84 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tasks/integrity.js | 46 | function firefoxExtractHashMetaInfOrder(manifest) { | CODE |
| LOW | tests/inject/support/background-stub.ts | 27 | export function resetChromeRuntimeMessageStub(): void { | CODE |
| LOW | tests/inject/support/background-stub.ts | 32 | export function stubBackgroundFetchResponse(url: string, content: string): void { | CODE |
| LOW | tests/browser/coverage.js | 95 | async function generateHTMLCoverageReport(dir, info) { | CODE |
| LOW | tests/browser/coverage.js | 126 | async function generateIndexHTMLCoveragePage(dir, info) { | CODE |
| LOW | tests/browser/coverage.js | 161 | export async function generateHTMLCoverageReports(dir, coverage) { | CODE |
| LOW | src/ui/options/advanced/enable-for-protected-pages.tsx | 7 | function onEnableForProtectedPages(value: boolean) { | CODE |
| LOW | src/ui/popup/utils/issues.ts | 3 | export function fixNotClosingPopupOnNavigation(): void { | CODE |
| LOW | src/ui/popup/components/body.tsx | 114 | function disableMobileLinksSlideIn() { | CODE |
| LOW | src/inject/index.ts | 187 | function sendConnectionOrResumeMessage(type: MessageTypeCStoBG.DOCUMENT_CONNECT | MessageTypeCStoBG.DOCUMENT_RESUME) { | CODE |
| LOW | src/inject/utils/dom.ts | 237 | export function addReadyStateCompleteListener(listener: () => void): void { | CODE |
| LOW | src/inject/utils/dom.ts | 241 | export function cleanReadyStateCompleteListeners(): void { | CODE |
| LOW | src/inject/utils/dom.ts | 286 | function getElementsTreeOperations(mutations: MutationRecord[]): ElementsTreeOperations { | CODE |
| LOW | src/inject/utils/dom.ts | 335 | export function createOptimizedTreeObserver(root: Document | ShadowRoot, callbacks: OptimizedTreeObserverCallbacks): {di | CODE |
| LOW | src/inject/dynamic-theme/image.ts | 287 | export function isBlobURLCheckResultReady(): boolean { | CODE |
| LOW | src/inject/dynamic-theme/image.ts | 365 | function tryConvertDataURLToBlobSync(dataURL: string): Blob | null { | CODE |
| LOW | src/inject/dynamic-theme/image.ts | 390 | export async function tryConvertDataURLToBlobURL(dataURL: string): Promise<string | null> { | CODE |
| LOW | src/inject/dynamic-theme/image.ts | 411 | export function cleanImageProcessingCache(): void { | CODE |
| LOW | src/inject/dynamic-theme/css-rules.ts | 168 | export function replaceCSSRelativeURLsWithAbsolute($css: string, cssBasePath: string): string { | CODE |
| LOW | src/inject/dynamic-theme/inline-style.ts | 279 | export function stopWatchingForInlineStyles(): void { | CODE |
| LOW | src/inject/dynamic-theme/inline-style.ts | 406 | function resetInlineStyleLoopDetection() { | CODE |
| LOW | src/inject/dynamic-theme/modify-css.ts | 68 | export function getModifiableCSSDeclaration( | CODE |
| LOW | src/inject/dynamic-theme/modify-css.ts | 135 | export function getModifiedUserAgentStyle(theme: Theme, isIFrame: boolean, styleSystemControls: boolean): string { | CODE |
| LOW | src/inject/dynamic-theme/modify-css.ts | 212 | function getModifiedSelectionStyle(theme: Theme) { | CODE |
| LOW | src/inject/dynamic-theme/modify-css.ts | 226 | function getModifiedScrollbarStyle(theme: Theme) { | CODE |
| LOW | src/inject/dynamic-theme/modify-css.ts | 694 | export function getShadowModifierWithInfo(value: string): CSSValueModifierWithInfo | null { | CODE |
| LOW | src/inject/dynamic-theme/modify-css.ts | 734 | export function getScrollbarColorModifier(value: string): string | CSSValueModifier | null { | CODE |
| LOW | src/inject/dynamic-theme/modify-css.ts | 771 | function getVariableDependantModifier( | CODE |
| LOW | src/inject/dynamic-theme/palette.ts | 49 | function getRegisteredVariableValue(type: ColorType, registered: RegisteredColor) { | CODE |
| LOW | src/inject/dynamic-theme/meta-theme-color.ts | 22 | export function changeMetaThemeColorWhenAvailable(theme: Theme): void { | CODE |
| LOW | src/inject/dynamic-theme/variables.ts | 702 | function getVariableNameAndFallback(match: string) { | CODE |
| LOW | src/inject/dynamic-theme/variables.ts | 767 | function wrapTextColorVariableName(name: string) { | CODE |
| LOW | src/inject/dynamic-theme/variables.ts | 771 | function wrapBorderColorVariableName(name: string) { | CODE |
| LOW | src/inject/dynamic-theme/index.ts | 91 | function stopStylePositionWatchers() { | CODE |
| LOW | src/inject/dynamic-theme/index.ts | 132 | function createStaticStyleInjector() { | CODE |
| LOW | src/inject/dynamic-theme/index.ts | 279 | function createStaticStyleOverrides() { | CODE |
| LOW | src/inject/dynamic-theme/index.ts | 325 | function createShadowStaticStyleOverridesInner(root: ShadowRoot) { | CODE |
| LOW | src/inject/dynamic-theme/index.ts | 339 | function delayedCreateShadowStaticStyleOverrides(root: ShadowRoot): void { | CODE |
| LOW | src/inject/dynamic-theme/index.ts | 359 | function createShadowStaticStyleOverrides(root: ShadowRoot) { | CODE |
| LOW | src/inject/dynamic-theme/index.ts | 414 | function createDynamicStyleOverrides() { | CODE |
| LOW | src/inject/dynamic-theme/index.ts | 519 | function createThemeAndWatchForUpdates() { | CODE |
| LOW | src/inject/dynamic-theme/index.ts | 623 | function createDarkReaderInstanceMarker() { | CODE |
| LOW | src/inject/dynamic-theme/index.ts | 634 | function isAnotherDarkReaderInstanceActive() { | CODE |
| LOW | src/inject/dynamic-theme/index.ts | 671 | function disableConflictingPlugins() { | CODE |
| LOW | src/inject/dynamic-theme/index.ts | 779 | export function createOrUpdateDynamicTheme(theme: Theme, dynamicThemeFixes: DynamicThemeFix[] | null, iframe: boolean): | CODE |
| LOW | src/inject/dynamic-theme/index.ts | 797 | export function createOrUpdateDynamicThemeInternal(themeConfig: Theme, dynamicThemeFixes: DynamicThemeFix | null, iframe | CODE |
| LOW | src/inject/dynamic-theme/stylesheet-proxy.ts | 18 | function disableConflictingPlugins() { | CODE |
| LOW | src/inject/dynamic-theme/adopted-style-manger.ts | 22 | export function canHaveAdoptedStyleSheets(node: Document | ShadowRoot): boolean { | CODE |
| LOW | src/inject/dynamic-theme/adopted-style-manger.ts | 51 | export function createAdoptedStyleSheetOverride(node: Document | ShadowRoot): AdoptedStyleSheetManager { | CODE |
| LOW | src/inject/dynamic-theme/adopted-style-manger.ts | 204 | function addSheetChangeEventListener(type: string, listener: (e: CustomEvent) => void) { | CODE |
| LOW | src/inject/dynamic-theme/modify-colors.ts | 28 | export function clearColorModificationCache(): void { | CODE |
| LOW⚡ | src/inject/dynamic-theme/watch/sheet-changes.ts | 50 | function watchForSheetChangesUsingProxy() { | CODE |
| LOW⚡ | src/inject/dynamic-theme/watch/sheet-changes.ts | 54 | function stopWatchingForSheetChangesUsingProxy() { | CODE |
| LOW⚡ | src/inject/dynamic-theme/watch/sheet-changes.ts | 58 | function stopWatchingForSheetChanges() { | CODE |
| LOW | src/inject/dynamic-theme/watch/sheet-changes.ts | 87 | function watchForSheetChangesUsingRAF() { | CODE |
| LOW | src/inject/dynamic-theme/watch/sheet-changes.ts | 106 | function stopWatchingForSheetChangesUsingRAF() { | CODE |
| LOW | src/inject/dynamic-theme/watch/style-position.ts | 196 | function subscribeForShadowRootChanges(node: Element) { | CODE |
| LOW | src/inject/dynamic-theme/watch/style-position.ts | 249 | export function stopWatchingForStylePositions(): void { | CODE |
| LOW | src/inject/dynamic-theme/watch/index.ts | 20 | export function stopWatchingForStyleChanges(): void { | CODE |
| LOW | src/inject/dynamic-theme/watch/custom-elements.ts | 82 | async function customElementsWhenDefined(tag: string): Promise<void> { | CODE |
| 19 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/background/tab-manager.ts | 301 | } | COMMENT |
| LOW | src/ui/controls/shortcut/index.tsx | 61 | // e.key can be inaccurate if Shift is also pressed | COMMENT |
| LOW | src/utils/colorscheme-parser.ts | 1 | // Seperator is to indicate that the it should start with a new defined colorscheme. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/inject/support/echo-server.js | 9 | function handleRequest(req, res) { | CODE |
| LOW | tests/browser/server.js | 43 | function handleRequest(req, res) { | CODE |