Skip to content

Instantly share code, notes, and snippets.

@aelk00
Last active March 1, 2024 00:58
Show Gist options
  • Star 110 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save aelk00/5a28f88e928db8fcd5c88d44ff65a4e0 to your computer and use it in GitHub Desktop.
Save aelk00/5a28f88e928db8fcd5c88d44ff65a4e0 to your computer and use it in GitHub Desktop.
Remove all your facebook likes
@Zintom
Copy link

Zintom commented Jan 16, 2021

@nchlsschndr From looking at the page it looks like it should still work, none of the variable names have changed; I know that there's some kind of rate limit on Facebook's end, maybe you're clicking too fast? Or maybe your browser is caching the items and they're actually gone? Idk but with my code posted above at 250ms per click it took around 45 mins to eliminate my entire Facebook like history (back to 2011).

Also, unless you're following literally thousands of pages, you should be able to do it manually in less than 10 minutes.

@nchlsschndr
Copy link

nchlsschndr commented Jan 16, 2021

@Zintom I know it should work. What filter exactly do you mean with

Facebook like history

?
Please note that I'm talking about category_key=LIKEDINTERESTS, not LIKEDPOSTS (that works). Cache was cleared, even tried on another browser with manual clicking. Seems like FB doesn't want you to unsubscribe from multiple pages in a too convenient way.

@Mywk
Copy link

Mywk commented Feb 11, 2022

To use in the Activity History:

setInterval(() => {
    document.querySelector('div[aria-label="Action options"]').click()
    document.querySelector('div[role="menuitem"]').click()
    document.querySelector('div[aria-label="Delete"]').click()
}, 400)

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