Skip to content

Instantly share code, notes, and snippets.

@GustavoJobstraibizer
Last active July 13, 2019 18: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 GustavoJobstraibizer/1616b4849ba540659079567756a06ef6 to your computer and use it in GitHub Desktop.
Save GustavoJobstraibizer/1616b4849ba540659079567756a06ef6 to your computer and use it in GitHub Desktop.
setInterval(function() {
var countUnsubscribe = 0;
var buttonsExit = document.querySelectorAll('._0mzm-.sqdOP.L3NKy._8A5w5');
var buttonUnsubscribe = document.querySelector('.aOOlW.-Cab_');
if (buttonsExit[1]) {
buttonsExit[1].click();
}
buttonUnsubscribe.click();
countUnsubscribe++;
console.log(`You've unsubscribe ${countUnsubscribe} subscriptions.`);
}, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment