---
title: "Want to Unlike All Liked Pages on Facebook?"
slug: want-to-unlike-all-liked-pages-on-facebook
canonical_url: https://nerdymomocat.github.io/posts/want-to-unlike-all-liked-pages-on-facebook/
collection: Stream
published_at: 2024-04-24T00:00:00.000Z
updated_at: 2024-04-24T00:00:00.000Z
tags: 
  - Coding
author: "Nerdy Momo Cat"
---

## Navigation Context

- Canonical URL: https://nerdymomocat.github.io/posts/want-to-unlike-all-liked-pages-on-facebook/
- You are here: Home > Posts > Stream > Want to Unlike All Liked Pages on Facebook?

### Useful Next Links
- [Home](https://nerdymomocat.github.io/)
- [Bundles](https://nerdymomocat.github.io/collections/bundles/)
- [Logbook](https://nerdymomocat.github.io/collections/logbook/)
- [Notes](https://nerdymomocat.github.io/collections/notes/)
- [Stream](https://nerdymomocat.github.io/collections/stream/)

### Related Content

#### Pages That Mention This Page
- [Code and Snippets](https://nerdymomocat.github.io/posts/code-and-snippets/)

I have been wanting to unlike all pages on Facebook that I liked as a teen in 2010. Because I stopped using Facebook pretty early (around 2014) — I thought unliking all of them made perfect sense. I did find some extensions to do so, that are now defunct; and 2 console tricks, that no longer work because Facebook keeps changing it layouts.

That is, until I landed on this [comment](https://gist.github.com/SAFAD/dfc16d4d485aa78031d47c458e7b652e?permalink_comment_id=4130798#gistcomment-4130798) on a gist.

Long story short; log into Facebook, open this [link](https://www.facebook.com/usrID/allactivity?activity_history=false&category_key=LIKEDINTERESTS&manage_mode=false&should_load_landing_page=false), install [TamperMonkey](https://chromewebstore.google.com/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo) if you don’t have it, paste and save the code below as user script, refresh that page and let it run. This uses the activity log to unlike pages, so when you go to your likes; there might still be brands that you ned to go to pages of and unlike and unfollow manually. The reload built into the script is required because after a few iterations, Facebook stops loading your earlier activity unless you refresh the page.

```
// ==UserScript==
// @name         Facebook Auto Unlike
// @namespace    http://tampermonkey.net/
// @version      2024-04-24
// @description  Automatically unlikes posts on Facebook
// @author       You
// @match        https://www.facebook.com/usrID/allactivity?activity_history=false&category_key=LIKEDINTERESTS&manage_mode=false&should_load_landing_page=false
// @icon         https://www.google.com/s2/favicons?sz=64&domain=facebook.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function runAutomation() {
        setTimeout(() => {
            const options = [].slice.call(document.querySelectorAll('[aria-label="Action options"]'));
            options.forEach(option => option.click());

            setTimeout(() => {
                const menuItems = [].slice.call(document.querySelectorAll('[role="menuitem"]'));
                const unlikeItems = menuItems.filter(item => item.innerText.includes('Unlike'));
                unlikeItems.forEach(item => item.click());

                setTimeout(() => {
                    location.reload();
                }, 3000); // 10 seconds after clicking unlike

            }, 3000); // 5 seconds after clicking action options

        }, 3000); // Start 5 seconds after page load
    }

    // Run the automation function when the page loads
    window.addEventListener('load', runAutomation);
})();
```