How qingtian1927/coursera-quizex works
Coursera QuizEX is a browser extension for extracting visible Coursera assignment questions and turning them into study exports. Its main workflow runs from the popup through the background worker to a content script that reads the assignment DOM; the worker stores collected question groups, and the popup formats and displays or downloads them. A separate auto-scrape workflow discovers courses and assignments, navigates pages, and collects feedback-visible questions. The excerpts show these message and storage responsibilities, but not every popup handler or download path; README-documented capabilities are included where implementation details were not shown.
Main entry points: background.js Background worker · popup.html Extension popup · content.js Question extraction · i18n.js Localization runtime
Components 13
Popup and exports
- Extension popup
popup.html - Format and preview
popup.js - Export downloads
popup.js
Page extraction
- Course discovery
content.js - Learning-path picker
content.js - Assignment discovery
content.js - Question extraction
content.js
Scrape orchestration
- Background worker
background.js
State and language
- Scraped-data storage
- Language messages
_locales/en/messages.json - Localization runtime
i18n.js
Other components
- Learner
- Coursera page
Connections 20
- Learner → Extension popup: opens
README.md - Extension popup → Background worker: requests actions
- Background worker → Question extraction: messages scrape
background.js - Question extraction → Coursera page: reads visible DOM
content.js - Background worker → Scraped-data storage: writes collected data
background.js - Extension popup → Scraped-data storage: loads saved data
- Extension popup → Format and preview: selects format
popup.js - Format and preview → Export downloads: generates export
README.md - Learner → Export downloads: downloads output
README.md - Background worker → Course discovery: requests paths
background.js - Background worker → Learning-path picker: requests selection
background.js - Background worker → Assignment discovery: requests assignments
background.js - Background worker → Question extraction: requests feedback questions
background.js - Course discovery → Coursera page: reads course details
content.js - Assignment discovery → Coursera page: reads assignment list
content.js - Learning-path picker → Learner: offers path choice
content.js - Background worker → Scraped-data storage: reads and appends data
background.js - Background worker → Localization runtime: loads messages
background.js - Localization runtime → Language messages: fetches locale files
i18n.js - Extension popup → Localization runtime: uses translated text