How to Auto Accept Facebook Friend Requests in few lines of JavaScript

31 Dec 2021 · 13 min
13:01

In this tutorial the presenter explains how he automated the acceptance of a large number of Facebook friend requests using a short JavaScript snippet run directly in the browser console. He begins by describing the problem of manually clicking “Confirm” for hundreds of pending requests, then demonstrates how to inspect the Facebook page’s DOM to locate the specific <span> element that contains the confirm button. He walks through the JavaScript code that collects all span elements, filters those whose text includes the word “confirm”, clicks each matching element, and keeps a counter of accepted requests. The speaker shows how to paste the core part of the script into the console, execute it, and verify the result (e.g., 26 friends auto‑confirmed). He also warns viewers about the risks of running arbitrary console code, advises only developers who understand the script should use it, and notes that the script may need to be re‑run in batches for large request lists. The video ends with a brief recap of the successful automation and an invitation for feedback.

Chapters

More from Tony

4:21
youtube.com

What Is LoRA? AI Fine-Tuning Explained With Glasses

1mo ago
3:07
youtube.com

i bought NVIDIA’s DGX Spark (unboxing a desktop AI Supercomputer)

1mo ago
2:59
youtube.com

Rekody: A Private Dictation App That Runs Entirely on Your Mac for Free!

3mo ago
11:49
youtube.com

Own Your LLM: Deploy + Build an App on It (Modal Auto Endpoints)

3mo ago
9:30
youtube.com

How to Setup Claude Code's NEW Remote Control Feature (Step-by-Step)

7mo ago
4:58
youtube.com

Faxes are Still a Thing? Here’s How I Automated Them for $1

7mo ago
15:04
youtube.com

CrewAI Flows Made Super Easy

1y ago
5:15
youtube.com

Summarize Videos and Research Companies with CrewAI + Gemini Models [Quickstart Guide]

1y ago
4:10
youtube.com

NotebookLM Video Overviews in 4 Minutes

1y ago
22:47
youtube.com

How I Made 3 AI Agents Work Together for Smarter Reports!

1y ago
8:36
youtube.com

How to Make Your AI Agents More Reliable with CrewAI Task Guardrails (Step-by-Step Tutorial)

1y ago
See all content