Skip to content

Instantly share code, notes, and snippets.

@SupertigerDev
Created September 12, 2024 11:29
Show Gist options
  • Save SupertigerDev/d740af76b9e36964dd02472825435aa0 to your computer and use it in GitHub Desktop.
Save SupertigerDev/d740af76b9e36964dd02472825435aa0 to your computer and use it in GitHub Desktop.
Open YouTube save playlist menu script
document.querySelector('yt-button-shape button[aria-label="More actions"]').dispatchEvent(new Event("click"))
setTimeout(() => {
[...document.querySelectorAll("ytd-menu-service-item-renderer")].at(-2).dispatchEvent(new Event("click"))
}, 300)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment