Skip to content

Instantly share code, notes, and snippets.

@tschwaerzl
Created November 7, 2019 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tschwaerzl/fd8342e1834521c590ad22666a751973 to your computer and use it in GitHub Desktop.
Save tschwaerzl/fd8342e1834521c590ad22666a751973 to your computer and use it in GitHub Desktop.
@elkentaro love machine
setInterval(function(){
var divs = document.getElementsByTagName('div')
var arr = Array.prototype.slice.call( divs)
var hearts = arr.filter(x => x.getAttribute('data-testid') == 'like')
hearts.forEach(h => h.click())
window.scrollTo(0, document.body.scrollHeight ||document.documentElement.scrollHeight);
},1000);
@tschwaerzl
Copy link
Author

Usage:

  • Open @elkentaro's Twitter Profile in a browser of your choice https://twitter.com/elkentaro
  • Open the developer settings / debug / you name it
  • Switch to the CONSOLE
  • Copy+Paste the code into console
  • Spread the love

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment