Skip to content

Instantly share code, notes, and snippets.

@dpasca
Forked from aelk00/remove-likes.md
Last active June 14, 2022 08:29
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 dpasca/22ba4b5aa0bdf192858fec160da35784 to your computer and use it in GitHub Desktop.
Save dpasca/22ba4b5aa0bdf192858fec160da35784 to your computer and use it in GitHub Desktop.
Remove all your facebook likes
  1. Go to: https://www.facebook.com/xx/allactivity/?category_key=LIKEDPOSTS&filter_hidden=ALL&filter_privacy=NONE (You can use Filter to choose year or month)
  2. Open the console (CTRL+SHIFT+I), paste and presse enter to run the following JavaScript code:
setInterval(() => {
  var cnt = 0;
  for (const butt of document.querySelectorAll('div[aria-label="Action options"]')) {
	
    setTimeout(function(){ 
        butt.click();
    }, 200 + cnt * 1000 );
	
    
    setTimeout(function(){ 
        document.querySelector('div[role="menuitem"]').click();
    }, 400 + cnt * 1000 );
	
    cnt += 1;
  }
}, 20000 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment