How micodell/factorfake-chrome-extension works
This small browser extension lets a user request a fact check for the active page. Its script routes YouTube links, other supported video links, and ordinary webpages to different API endpoints; webpage text is extracted in-page first. The returned percentages and analysis are shown in the extension UI. The sampled source establishes the browser-action injection and request flow; the backend internals and HTML/manifest details are not available here.
Main entry points: script.js Fact-check script · index.html Extension UI · background.js Action handler
Components 8
Other components
- User
- Action handler
background.js - Fact-check script
script.js - Extension UI
index.html - Page text scraper
script.js - YouTube check endpoint
- Video check endpoint
- Text check endpoint
Connections 13
- User → Action handler: clicks browser action
- Action handler → Fact-check script: injects script
- User → Extension UI: clicks check
- Extension UI → Fact-check script: triggers handler
- Fact-check script → Page text scraper: injects scraper
- Page text scraper → Fact-check script: returns page text
- Fact-check script → YouTube check endpoint: POST video ID
- Fact-check script → Video check endpoint: POST video URL
- Fact-check script → Text check endpoint: POST page text
- YouTube check endpoint → Fact-check script: returns analysis
- Video check endpoint → Fact-check script: returns analysis
- Text check endpoint → Fact-check script: returns analysis
- Fact-check script → Extension UI: displays results