4 Commits

Author SHA1 Message Date
Lawrence Hook 6ed3ad0291 Remove obsolete docs and update TODO for YouTube DOM change
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 19:08:03 -05:00
Lawrence Hook c3c7db3315 perf: optimize polling and reduce CPU usage
Options page:
- Pause timeLoop when popup is hidden (Page Visibility API)
- Use { once: true } for log prompt button listeners
- Remove stray console.log in settings import

Content script:
- Slow polling from 100ms to 500ms after page settles (was stuck at 100ms)
- Stop playlist autoplay interval once manager is found
- Only check dismiss buttons every 5th iteration
- Only check reveal boxes for first 30 iterations
- Only query clip button DOM if setting is enabled
- Skip subscriptions page queries if no sub-settings enabled
- Fix ad skip button selector for current YouTube UI

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 20:06:14 -05:00
Lawrence Hook 77d36b1360 chore: complete remaining quick wins from TODO
- Move duplicated YouTube URL regexes to shared/utils.js
- Delete commented-out code blocks (theater mode, playback speed, cookie manipulation, debug vars)
- Add Page Visibility API to pause polling when tab is hidden
- Update TODO.md to reflect completed items

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 19:28:12 -05:00
Lawrence Hook 8ca3247d68 claude recommends some TODOs 2025-12-30 17:41:59 -05:00