How xkyota/bettermykoob works
BetterMykoob is a Chrome extension that reshapes the existing Mykoob page into a responsive interface while leaving Mykoob responsible for accounts, school data, and actions. The workflow is: the content script preserves the original page, reads it through a DOM adapter, and renders the React app; the app presents Home, Diary, and Grades views and can invoke supported original-page controls. The README also documents access to pages without a dedicated redesign through the original content. Evidence is limited to the supplied excerpts and README; unsampled UI behavior is represented only where documented.
Main entry points: App.tsx React app · domAdapter.ts DOM adapter · main.tsx Content script · models.ts Snapshot models
Components 9
Page integration
- Content script
src/content/main.tsx
Mykoob integration
- DOM adapter
src/mykoob/domAdapter.ts - Snapshot models
src/mykoob/models.ts
Extension interface
- React app
src/components/App.tsx - Home view
src/components/App.tsx - Diary view
src/components/App.tsx - Grades view
src/components/App.tsx - Original-page fallback
src/components/App.tsx
Other components
- Mykoob page
Connections 11
- Content script → DOM adapter: creates and reads
src/content/main.tsx - Content script → React app: renders with snapshot
src/content/main.tsx - DOM adapter → Mykoob page: reads DOM and controls
src/mykoob/domAdapter.ts - DOM adapter → Mykoob page: fetches schedule
src/mykoob/domAdapter.ts - DOM adapter → Snapshot models: uses types
src/mykoob/domAdapter.ts - React app → Snapshot models: uses snapshot types
src/components/App.tsx - React app → DOM adapter: invokes page controls
src/components/App.tsx - React app → Home view: renders
src/components/App.tsx - React app → Diary view: renders
src/components/App.tsx - React app → Grades view: renders
src/components/App.tsx - React app → Original-page fallback: shows original content
README.md