Date: 2025-11-07 Feature: Add "Move to Top" and "Move to Bottom" options to the three-dot menu for videos
In the main view of the popup menu, in the three-dot menu next to each video, add an option to "move to top", which will move that video in its playlist to the "top", which (as a reminder) is defined as "after the last video marked as 'done' continuously from the beginning of the playlist". Also add an option to "move to bottom", which will move the video to the end of its playlist. Obviously, disable these options if the video in question is already at the top or the bottom respectively.
popup/popup.js - Added three new methods:
moveVideoToTop(playlistName, index): Moves a video to the top position (after the last continuously done videos)moveVideoToBottom(playlistName, index): Moves a video to the bottom of the playlistfindTopPosition(playlistName): Helper method that finds the "top" position by finding the first non-done videopopup/popup.js - Added two new button bindings:
moveToTopButton: Binding with click handler and disabled state (disabled when video is already at top)moveToBottomButton: Binding with click handler and disabled state (disabled when video is already at bottom)popup/popup.html - Added buttons to both views:
status === "done"splice to remove the video from its current position and insert it at the new positioncloseAllMenus())To test this feature:
/Users/yellowdig/personal/projects/playlist/popup/popup.js/Users/yellowdig/personal/projects/playlist/popup/popup.html