Created
September 11, 2017 21:24
-
-
Save greduan/2a0b2a280ceba3386936e60735b424dc to your computer and use it in GitHub Desktop.
Mass unsub from all YT subscriptions
This file contains 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
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