Skip to content

Instantly share code, notes, and snippets.

@xiangzhuyuan
Created June 23, 2019 13:43
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 xiangzhuyuan/6c59825386d32e60ecec9958995f59ea to your computer and use it in GitHub Desktop.
Save xiangzhuyuan/6c59825386d32e60ecec9958995f59ea to your computer and use it in GitHub Desktop.
just run code in console by one click
(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