Skip to content

Instantly share code, notes, and snippets.

@kurtmilam
Created August 26, 2020 22:53
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 kurtmilam/945ebdb749650617b843b3f6c9ec6b45 to your computer and use it in GitHub Desktop.
Save kurtmilam/945ebdb749650617b843b3f6c9ec6b45 to your computer and use it in GitHub Desktop.
// 1. navigate to your likes page
// 2. paste this script into the console
// 3. hit 'enter'
// 4. repeat if necesary
setInterval(() => {
Array.from(document.getElementsByTagName('div'))
.filter(x => x.getAttribute('data-testid') == 'unlike')
.forEach(x => x.click())
window.scrollTo(0, document.body.scrollHeight || document.documentElement.scrollHeight)
},1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment