Skip to content

File Structure

Toxc edited this page May 9, 2026 · 1 revision

File Structure

ReelScroller/
├── manifest.json            # Extension manifest (Manifest Version 2)
├── background.js            # Global state management and toolbar toggle handler
├── content_script_clean.js  # Active content script — loaded by the manifest
├── content_script.js        # Development/working copy — not loaded by Firefox
├── icon-48.png              # Toolbar icon (48 × 48 px)
├── README.md                # Project readme
├── CHANGELOG.md             # Version history
├── SECURITY.md              # Security policy
└── LICENSE                  # MIT license

File descriptions

manifest.json

Defines the extension's metadata, permissions, background script, content script injection rules, and browser-specific settings (minimum Firefox version, data collection declaration). See Manifest & Permissions for details.

background.js

The background script. Handles the toolbar button click, reads/writes reelScrollerEnabled from browser.storage.local, updates the badge, and broadcasts ENABLE/DISABLE messages to open Instagram tabs.

content_script_clean.js

The production content script referenced in manifest.json. Attaches to Instagram pages, observes video elements on Reels routes, triggers scrolling when videos end, and skips sponsored Reels. This is the file Firefox actually loads.

content_script.js

A working/development copy of the content script. May contain debug logging or experimental changes. Not loaded by Firefox — changes here have no effect until promoted to content_script_clean.js.

icon-48.png

The extension icon displayed in the Firefox toolbar and on about:addons. Used at 48 × 48 px as declared in manifest.json.

Clone this wiki locally