How mrcasiopea/g-raw-converter-extension works
GitHub Raw Link Copier is a small browser extension: the user clicks its toolbar icon on a GitHub file page, the background listener checks and converts the tab URL, then injects code to copy the raw URL and show a localized confirmation toast. Unsupported URLs show an error toast instead. The implementation is concentrated in background.js; the README documents supported formats and permissions, while the source excerpt shows the runtime calls.
Main entry points: background.js Toolbar Click Handler
Components 6
Other components
- User
- Toolbar Click Handler
background.js - URL Detection and Conversion
background.js - Copy and Toast Script
background.js - Browser Clipboard
- GitHub Page DOM
Connections 5
- User → Toolbar Click Handler: clicks icon
README.md - Toolbar Click Handler → URL Detection and Conversion: checks URL
background.js - Toolbar Click Handler → Copy and Toast Script: injects script
background.js - Copy and Toast Script → Browser Clipboard: copies text
background.js - Copy and Toast Script → GitHub Page DOM: renders toast
background.js