How anixi9/suomi-clipboard works
Suomi Clipboard is a Firefox/Zen Browser extension that intercepts file-attach flows and presents a local panel for clipboard screenshots, recent downloads, and dragged-file history. The main workflow runs from page attach controls or the hotkey through the content script’s panel and attachment strategies; the background script supplies stored items and browser downloads. Settings are edited separately and shared through extension storage. Edges reflect excerpted calls or README statements; unsampled panel and manifest wiring is omitted where not evidenced.
Main entry points: background.js Clipboard polling and messages · content.js Page panel and attachment · options.js Settings screen · _locales Translations
Components 12
Page interaction
- Page panel and attachment
content.js - Panel item browsing
content.js
Background services
- Screenshot and file history
background.js - Clipboard polling and messages
background.js
Preferences
- Settings screen
options.js - Extension settings
Other components
- Browser user
- Attach controls
- Site file input
- System clipboard
- Browser downloads
- Translations
_locales
Connections 16
- Attach controls → Page panel and attachment: opens picker
README.md - Browser user → Page panel and attachment: uses hotkey
- Page panel and attachment → Clipboard polling and messages: requests items
background.js - Clipboard polling and messages → Screenshot and file history: stores screenshots
background.js - Clipboard polling and messages → Screenshot and file history: stores file history
background.js - Clipboard polling and messages → System clipboard: polls images
background.js - Clipboard polling and messages → Browser downloads: lists downloads
background.js - Clipboard polling and messages → Browser downloads: fetches selected file
background.js - Page panel and attachment → Site file input: attaches files
content.js - Page panel and attachment → Extension settings: reads preferences
content.js - Settings screen → Extension settings: saves preferences
options.js - Page panel and attachment → Clipboard polling and messages: requests translations
background.js - Clipboard polling and messages → Translations: loads messages
background.js - Settings screen → Translations: loads messages
options.js - Page panel and attachment → Panel item browsing: renders panel
content.js - Panel item browsing → Clipboard polling and messages: refreshes items