Created
December 16, 2018 21:33
-
-
Save lofcz/e8289564c8846bccfb7ff7586362b2f0 to your computer and use it in GitHub Desktop.
Fuck youtube subscriptions once for all
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
// 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