How 0ximei/lms-griffithict-2026 works
Purpose and Entry Points
This repository contains a browser extension, reel-fullscreen-extension, intended to alter fullscreen behavior for reel/video content. The root README provides no product detail; the extension’s own manifest is the authoritative runtime entry point: reel-fullscreen-extension/manifest.json.
Extension Runtime Composition
The extension is split across browser-managed background logic, page-injected content logic, and a popup UI:
• Background runtime: reel-fullscreen-extension/background.js
• Content-script runtime: reel-fullscreen-extension/content.js
• User-facing popup: reel-fullscreen-extension/popup.html, reel-fullscreen-extension/popup.js
The browser loads and connects these components according to declarations in reel-fullscreen-extension/manifest.json.
Page Integration and Fullscreen Control
reel-fullscreen-extension/content.js is the primary boundary with the target webpage. It can inspect or manipulate page DOM/video elements while remaining in the extension’s isolated content-script environment. Fullscreen-oriented presentation styling is separated into reel-fullscreen-extension/overlay.css, indicating an injected or extension-owned overlay layer rather than a standalone application UI.
Background Coordination
reel-fullscreen-extension/background.js is the long-lived extension-side coordinator. It is the appropriate control boundary for browser APIs, extension lifecycle events, cross-tab concerns, and message handling from the popup or content script. Communication between isolated content scripts and privileged background logic is expected to use extension messaging configured by reel-fullscreen-extension/manifest.json.
Popup Interaction Flow
The popup is a compact extension UI rendered from reel-fullscreen-extension/popup.html and controlled by reel-fullscreen-extension/popup.js. Its likely flow is: user opens the browser action popup, selects or triggers fullscreen-related behavior, then popup code communicates with the active tab and/or background runtime. It should not directly depend on target-page DOM access; that belongs in content.js.
URL/Video Target Normalization
The presence of reel-fullscreen-extension/test-normalize-video-url.js identifies video URL normalization as an important behavioral seam. URL interpretation likely determines which reel/video resource the content script or background logic acts upon. The implementation under test is expected to reside in one of the extension runtime files, primarily reel-fullscreen-extension/content.js or reel-fullscreen-extension/background.js.
Infrastructure and External Boundaries
This is a client-side browser-extension architecture, with no server, database, deployment infrastructure, or external API integration visible in the supplied tree. Material platform dependencies are the browser extension APIs, target-page DOM/media/fullscreen APIs, and manifest permissions/configuration in reel-fullscreen-extension/manifest.json.
Main entry points: content.js Content Script · popup.js Popup Controller · background.js Background Coordinator · manifest.json Extension Manifest
Components 10
Extension Package
- Extension Manifest · Declares extension runtimes, permissions, and script injection.
reel-fullscreen-extension/manifest.json - Background Coordinator · Handles privileged browser APIs, lifecycle, and cross-runtime messages.
reel-fullscreen-extension/background.js - Content Script · Controls reel/video DOM behavior from the isolated extension context.
reel-fullscreen-extension/content.js - Fullscreen Overlay Styles
reel-fullscreen-extension/overlay.css - Popup View
reel-fullscreen-extension/popup.html - Popup Controller · Sends fullscreen actions to the active tab or background runtime.
reel-fullscreen-extension/popup.js - Normalized Video URL · Identifies the reel/video resource selected for fullscreen behavior.
Browser & Target Page
- Browser Extension APIs · Provides messaging, tabs, action popup, and lifecycle integration.
- Target Reel Page
- DOM, Video & Fullscreen APIs
Connections 13
- Extension Manifest → Background Coordinator: loads
- Extension Manifest → Content Script: injects
- Extension Manifest → Popup View: declares popup
- Popup View → Popup Controller: runs
- Popup Controller → Background Coordinator: extension messages
- Popup Controller → Content Script: active-tab command
- Content Script → Background Coordinator: extension messages
- Background Coordinator → Browser Extension APIs: uses privileged APIs
- Popup Controller → Browser Extension APIs: uses tab/action APIs
- Content Script → Target Reel Page: inspects and manipulates
- Content Script → DOM, Video & Fullscreen APIs: controls
- Content Script → Fullscreen Overlay Styles: applies
- Content Script → Normalized Video URL: normalizes target