Skip to content

Instantly share code, notes, and snippets.

@greduan
Created September 11, 2017 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greduan/2a0b2a280ceba3386936e60735b424dc to your computer and use it in GitHub Desktop.
Save greduan/2a0b2a280ceba3386936e60735b424dc to your computer and use it in GitHub Desktop.
Mass unsub from all YT subscriptions
const buttons = document.getElementsByClassName('subscribed-label')
Array.prototype.forEach.call(buttons, b => {
b.click()
const unsub = document.getElementsByClassName('overlay-confirmation-unsubscribe-button')
Array.prototype.forEach.call(unsub, u => u.click())
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment