How mrcoles/full-page-screen-capture-chrome-extension works
This Chrome extension captures a full web page by scrolling the active tab through calculated positions, capturing each visible viewport, assembling the images, saving PNG file(s), and opening them in result tabs. The README describes the product’s capture goal; sampled source shows the popup-to-capture workflow and page-side scrolling. The architecture omits unsampled manifest wiring and browser APIs are represented as external services.
Main entry points: api.js Capture coordinator · popup.js Popup controller · page.js Page scroller
Components 11
Capture interaction
- Popup controller
popup.js
Page capture
- Capture coordinator
api.js - Page scroller
page.js
Image output
- Canvas assembly
api.js - PNG blob conversion
api.js - Temporary file storage
api.js - Result tabs
popup.js
Other components
- User
- Active tab
- Chrome tabs API
- Viewport capture
Connections 16
- User → Popup controller: opens
popup.js - Popup controller → Chrome tabs API: queries active tab
popup.js - Chrome tabs API → Active tab: returns tab
- Popup controller → Capture coordinator: starts capture
popup.js - Capture coordinator → Chrome tabs API: injects script
api.js - Chrome tabs API → Page scroller: executes
- Capture coordinator → Page scroller: requests scrolling
api.js - Page scroller → Chrome tabs API: sends capture data
page.js - Capture coordinator → Chrome tabs API: captures viewport
api.js - Chrome tabs API → Viewport capture: returns PNG data
- Capture coordinator → Canvas assembly: draws captures
api.js - Canvas assembly → PNG blob conversion: encodes canvases
api.js - Capture coordinator → Temporary file storage: writes image files
api.js - Capture coordinator → Popup controller: reports progress
popup.js - Capture coordinator → Popup controller: returns filenames
popup.js - Popup controller → Result tabs: opens images
popup.js