in the popup menu, there may be videos that are marked as "done" that come after videos that are not marked as done. even though they are not truncated with the contiguous "done" videos, they should be visually marked somehow. grey them out (very slightly) in the main view and in the individual playlist view. leave everything else the same.
Added visual styling for videos that are marked as "done" but appear after non-done videos in the playlist. These non-contiguous done videos are now visually distinguished with subtle greying.
JavaScript Logic (popup/popup.js):
isNonContiguousDone(playlistName, videoIndex) method to identify done videos that come after non-done videosupdatePlaylistsForDisplay() to include isNonContiguousDone property in visible videosupdateCurrentPlaylistVideos() to include isNonContiguousDone property in current playlist videosvideoItemClass binding to apply non-contiguous-done-video CSS classCSS Styling (popup/popup.css):
.non-contiguous-done-video class with subtle opacity reduction (0.7) and light grey background.non-contiguous-done-video .video-title with greyed text color (#666)The isNonContiguousDone method checks if:
This ensures only truly non-contiguous done videos are styled, maintaining the existing behavior for contiguous done videos at the beginning of playlists.
The styling is applied in both:
popup/popup.js - Added logic for identifying non-contiguous done videospopup/popup.css - Added subtle visual styling for non-contiguous done videos