Commit Graph

10 Commits

Author SHA1 Message Date
00507fe87c refactor: decompose CSS, unify dark mode, extract shared modules
Structural cleanup based on thermo-nuclear code quality review:
- Extract shared color-picker.css and color-popover.css from badges.css (611→85 lines)
- Extract shared lib/presets.js for preset CRUD used by popup and popover
- Unify dark mode to single applyDarkModeClass on <html>, removing 4 scattered functions
- Fix stale closure in startPostObserver, data-driven reload key check
- Remove dead exports, getHelpers wrapper, duplicated colorToHex
- Replace DOM expando properties with state array in popup.js

Net: -318 lines of duplication, no file over 401 lines.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-28 01:39:25 -04:00
0eefcfc6cf chore: remove debug console.log from init
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-27 05:49:27 -04:00
074d234883 feat: add fontOverride toggle for Reddit Sans fonts
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-27 05:45:48 -04:00
6e2aec39c9 fix: use fresh settings in dark-mode observer and storage listener
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 21:18:48 -04:00
5521e39a66 feat: add card layout tweak with unified post observer
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 21:14:06 -04:00
8d3ff72f4f feat: add badgeLayout toggle, rename FOUC class to rt-badges-enabled
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 21:10:48 -04:00
37c142f6e6 fix: prevent page reload on color/preset saves
saveSettings() writes all keys including 'enabled', which triggered
the storage.onChanged reload check even when enabled didn't actually
change. Compare oldValue vs newValue so the reload only fires when
the enabled state genuinely toggles.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 18:17:33 -04:00
8be62e1fec fix: disabled-state UI, settings shallow-merge, and popup save reliability
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 15:05:48 -04:00
6cedae7a2c feat: badge DOM manipulation with MutationObservers and dark mode detection
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 15:00:49 -04:00
ddc47bfdcc feat: extension skeleton with manifest, settings module, and placeholder icons
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 14:57:11 -04:00