v1.1.3: Improved Feature Toggles & Video Change Detection
This release improves how the extension handles feature toggles and video changes on YouTube.
Major Changes
- Added proper video change detection using MutationObserver
- Improved feature toggle handling to reduce unnecessary operations
- Added cleanup for observers when features are disabled
Features
- New video-id observer to detect when users navigate to different videos
- Smart observer management: only runs when features are enabled
- Proper cleanup of observers when features are toggled off
- Improved title cache management on video changes
Technical Improvements
- Added waitForElement utility function for better DOM handling
- Optimized observer creation and cleanup
- Added state checks before running feature updates
- Better memory management through proper observer cleanup
Bug Fixes
- Fixed issue where observers would continue running when features were disabled
- Fixed title cache not clearing properly on video changes