Name Description Size Coverage
DOMExtractor.sys.mjs @see {extractTextFromDOM} for a high level overview of this file. 37957 -
moz.build 524 -
PageExtractor.d.ts Reader mode doesn't provide the types for the result. This a stub for making the results easier to interpret. 3340 -
PageExtractorChild.sys.mjs @import { GetTextOptions, CanvasSnapshot, ExtractionResult, PageMetadata, ReaderModeDocument } from './PageExtractor.d.ts' @import { PageExtractorParent } from './PageExtractorParent.sys.mjs' 14427 -
PageExtractorParent.sys.mjs @import { HiddenFrame } from "resource://gre/modules/HiddenFrame.sys.mjs" @import { GetTextOptions, ExtractionResult, PageMetadata } from './PageExtractor.d.ts' @import { PageExtractorChild } from './PageExtractorChild.sys.mjs' 12255 -
tests -
YouTubeExtraction.sys.mjs Extracts a YouTube watch page into a compact, labeled block. YouTube renders the transcript into an engagement panel only after the user opens it, so this module opens that panel (by activating the "Show transcript" control), reads the rendered segments, then closes the panel again. Reading the rendered DOM avoids having to intercept and decode YouTube's `get_transcript`/`get_panel` network payloads. Two transcript segment element generations currently coexist and are both supported: - New: `transcript-segment-view-model` - Legacy: `ytd-transcript-segment-renderer` 24599 -