A collection of JavaScript automation scripts designed to simplify and enhance Facebook workflows.
Each script automates a specific action — from unfollowing pages to managing saved posts — and handles dynamically loaded content by auto-scrolling when needed.
This repository contains multiple .md files, each dedicated to a specific Facebook script.
Every file includes a detailed explanation, usage instructions, and example code.
Choose a Script
Browse through the repository and open the.mdfile for the script you want to use.Go to the Target Facebook Page
Open Facebook and navigate to the page where you want the script to run.Open the Browser Console
- Press
F12, or - Right-click anywhere on the page → Inspect → go to the Console tab.
- Press
Copy + Paste the Script
Copy the entire JavaScript code snippet from the.mdfile, paste it into the console, and press Enter.Watch the Automation Run
The script will automatically perform the intended action — you’ll see its progress and logs directly in the console.
- Always make sure you’re on the correct Facebook page before running a script.
- Facebook’s UI updates frequently — if a script stops working, check the repo for an updated version.
- These scripts are meant for personal automation and educational purposes only.
Got your own Facebook automation script?
Feel free to open a PR with your .md guide and code snippet!
Make sure your file includes:
- A short description of what the script does
- A step-by-step usage guide
- The full JavaScript code
- Any known limitations or warnings
This project is licensed under the MIT License — feel free to modify and share responsibly.