Skip to content

Instantly share code, notes, and snippets.

@50kudos
Created September 7, 2022 00:05
Show Gist options
  • Save 50kudos/e9fc7efaafa63218eea455f0ace79368 to your computer and use it in GitHub Desktop.
Save 50kudos/e9fc7efaafa63218eea455f0ace79368 to your computer and use it in GitHub Desktop.
Unlike tweets
// Adjust as your computer see fit. Too fast, resource releasing will lag.
var doit = () => {
let btns = document.querySelectorAll("[data-testid='unlike']")
if (btns.length == 0) document.querySelector("html").scrollTop += 400
else for (let btn of btns) setTimeout(() => btn.click(), 100)
setTimeout(() => doit(), 300)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment