sahilsheikh-dev / YouTube-Video-Extension

0 stars 1 forks source link

Smart Auto-Pause #2

Open sahilsheikh-dev opened 2 days ago

sahilsheikh-dev commented 2 days ago

Detect whether the video is being actively watched (e.g., via mouse or keyboard activity on the page). Only auto-pause if there's no activity for a certain duration. Use JavaScript event listeners (mousemove, keydown) in content.js to detect activity. Implement a timer that pauses the video after a period of inactivity.