Last active
April 13, 2025 22:42
-
-
Save mcint/2349b25d83bceab82fdccf4744158875 to your computer and use it in GitHub Desktop.
Remove videos from a playlist -- 100 at a time, easier that waiting for "load entire playlist" to complete https://chromewebstore.google.com/detail/multiselect-for-youtube/gpgbiinpmelaihndlegbgfkmnpofgfei?hl=en
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// With MultiSelect for YouTube, delete 100 at a time from playlist | |
// https://chromewebstore.google.com/detail/multiselect-for-youtube/gpgbiinpmelaihndlegbgfkmnpofgfei?hl=en | |
f_open_modal = ()=> $('div.ytd-masthead#end > div').click() | |
async function multi_remove(){ | |
f_list_item = ()=> $$('#msfy-video-checkbox')[0] | |
f_select = ()=> $('body > div > div#content').children[6].click() | |
f_menu = ()=> $('body > div > div#content').children[10].click() | |
f_menu_remove = ()=> $('div#msfy-action-remove-videos').click() | |
f_popup_submit = ()=> $('button#submit').click() | |
await f_list_item() | |
if(! f_select() ) f_open_modal() | |
f_select() | |
f_menu() | |
f_menu_remove() | |
f_popup_submit() | |
} | |
await multi_remove() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment