Skip to content

Instantly share code, notes, and snippets.

View markjiggermasacupan's full-sized avatar

Mark Jigger Masacupan markjiggermasacupan

View GitHub Profile
@yrambler2001
yrambler2001 / gist:fed69ad4cc03a897b39aa508dd9ef250
Created March 11, 2026 01:28
Mac OS Proxyman enable Authenticator App TOTP 2FA Facebook
// URL: https://accountscenter.facebook.com/api/graphql/
/// This func is called if the Request Checkbox is Enabled. You can modify the Request Data here before the request hits to the server
/// e.g. Add/Update/Remove: host, scheme, port, path, headers, queries, comment, color and body (json, form, plain-text, base64 encoded string)
///
/// Use global object `sharedState` to share data between Requests/Response from different scripts (e.g. sharedState.data = "My-Data")
///
async function onRequest(context, url, request) {
console.log(url);
return request;
@jcarroll
jcarroll / README.md
Last active June 16, 2026 11:23
Unfollow all Facebook Friends, Groups, and Pages

Unfollow all Facebook Friends, Groups, and Pages

  1. Settings & Privacy
  2. Feed
  3. Unfollow people and groups

Screenshot 2023-10-22 10 50 47 PM

  1. Replace the following line with today's class (see screenshot)
@lucahammer
lucahammer / delete-tweets.js
Last active May 11, 2026 04:21
Delete all your Tweets Javascript
/*
This may get your account banned. It runs in your regular browser with your regular login without needing the API.
The script does the same things that you would do yourself:
Click the three dots, select delete Tweet, confirm, scroll to next Tweet, repeat.
==========================
Usage
1. Open your Twitter profile in a browser
2. Open the console in the developer tools (F12)
3. Paste the script and press enter
4. ???
@dvygolov
dvygolov / exportblockedusersfp.js
Last active July 21, 2025 08:20
Export Blocked Users from your FanPage: first switch your profile to your FanPage, then run the script on https://www.facebook.com/settings?tab=blocking
async function privateApiRequest2(body = null, headers = null, url = null) {
let graphUrl = "";
if (url != null) graphUrl = url;
else {
let subDomain = getSubDomain();
graphUrl = `https://${subDomain}.facebook.com/api/graphql/`;
}
if (body == null) {
let uid = require("CurrentUserInitialData").USER_ID;
@dvygolov
dvygolov / importblockedusers.js
Last active July 21, 2025 08:20
Import users to the Blocked list of a Facebooks Fan Page
let api = 'https://graph.facebook.com/v14.0';
let headers = {
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
"accept-language": "en-US,en;q=0.9",
"cache-control": "max-age=0",
"sec-ch-ua": "\"Google Chrome\";v=\"107\", \"Chromium\";v=\"107\", \"Not=A?Brand\";v=\"24\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate",
@renestalder
renestalder / README.md
Last active June 16, 2026 11:23
Unfollow all on Facebook

Facebook: Unfollow people and pages

See comments section for more up-to-date versions of the script. The original script is from 2014 and will not work as is.

  1. Open news feed preferences on your Facebook menu (browser)
  2. Click people or pages
  3. Scroll down (or click see more) until your full list is loaded
  4. Run the script in your browser console

Facebook will block this feature for you while you use it, depending on how much entities you try to unfollow. It automatically unblocks in a couple of hours and you will be able to continue.