- Settings & Privacy
- Feed
- Unfollow people and groups
- Replace the following line with today's class (see screenshot)
| // 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; |
| /* | |
| 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. ??? |
| 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; |
| 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", |
See comments section for more up-to-date versions of the script. The original script is from 2014 and will not work as is.
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.