Skip to content

Instantly share code, notes, and snippets.

@lofcz
Created December 16, 2018 21:33
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 lofcz/e8289564c8846bccfb7ff7586362b2f0 to your computer and use it in GitHub Desktop.
Save lofcz/e8289564c8846bccfb7ff7586362b2f0 to your computer and use it in GitHub Desktop.
Fuck youtube subscriptions once for all
// Navigate to https://www.youtube.com/subscription_manager/
// then execute
(function(){
var btns = document.getElementsByTagName('button');
for (var i = 0; i < btns.length; i++) {
if (btns[i].dataset.isSubscribed == "True") {
if (!!btns[i].dataset.showUnsubConfirmDialog) {
delete btns[i].dataset.showUnsubConfirmDialog;
}
btns[i].click();
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment