by GeoHubToday on 6/22/24, 9:38 PM with 119 comments
by bqmjjx0kac on 6/22/24, 10:38 PM
const wait = () => new Promise(resolve => setTimeout(resolve, 1000));
const getElementsByAriaLabel = (label) => document.querySelectorAll(`[aria-label="${label}"]`);
const getElementsByRoleAndWidth = (role, width) =>
Array.from(document.querySelectorAll(`[role="${role}"]`)).filter(el => el.clientWidth === width);
const getElementsByText = (text) => Array.from(document.querySelectorAll('*')).filter(el =>
Array.from(el.childNodes).some(node => node.nodeType === Node.TEXT_NODE && node.textContent.includes(text))
);
async function clickAndWait(elem) {
if (!elem)
return;
elem.click();
await wait();
}
await clickAndWait(getElementsByText("See more")[0]);
const ads = getElementsByRoleAndWidth('listitem', 508);
for (const ad of ads) {
console.log(ad.childNodes[0].textContent)
await clickAndWait(ad.childNodes[0]);
await clickAndWait(getElementsByText('They uploaded or used a list to reach you.')[0]);
const dont_allow_btns = getElementsByText('Don\'t allow');
for (const btn of dont_allow_btns) {
btn.click();
}
await wait();
await clickAndWait(getElementsByAriaLabel('Back')[2]);
await clickAndWait(getElementsByAriaLabel('Back')[2]);
}
by junto on 6/22/24, 9:56 PM
My hack is to live in a country where the local language is not my own, and not the one I have set in my Facebook settings.
As a result, Facebook rarely has advertisements that can target me, because my language has been filtered out by the advertisers.
When one does appear, it’s nearly always in the local language, so I’m kind of deaf to it and I’m not going to actively respond to anyway.
Luckily they haven’t figured that out yet, even though I’ve been an Facebook user for many years.
by tgsovlerkhgsel on 6/23/24, 12:23 AM
by Terr_ on 6/22/24, 9:56 PM
[0] https://www.theregister.com/2024/05/02/meta_facebook_tool/
[1] https://slate.com/technology/2021/10/facebook-unfollow-every...
by EvgeniyZh on 6/23/24, 5:38 AM
by mgraczyk on 6/22/24, 11:28 PM
by josephcsible on 6/23/24, 1:08 AM
by SSLy on 6/22/24, 10:20 PM
This page isn't available
The link may be broken or the Page may have been removed. Check to see if the link that you're trying to open is correct.
Go to Accounts Centre
also Uncaught SyntaxError: await is only valid in async functions, async generators and modules
by Terr_ on 6/22/24, 10:50 PM
by stevage on 6/22/24, 10:59 PM
by atleta on 6/22/24, 11:13 PM
by 29athrowaway on 6/22/24, 11:00 PM
Also, these scripts break often as they depend on observable behaviors that are not contracts. It's Hyrum's law again.
by rkagerer on 6/22/24, 9:56 PM
How's this technique compare to just staying logged out of Facebook? Or using it solely in a sandboxed browsing environment?
by throwaway_5753 on 6/23/24, 12:46 AM
I recall some surprising legal outcomes in recent years, for example jail for posting fake Yelp reviews. Anyone know of any case law for this sort of scripting?
by technion on 6/23/24, 4:24 AM
by GeoHubToday on 6/22/24, 11:23 PM
by seadan83 on 6/22/24, 11:47 PM
Question, could someone explain the exact impact this would have for Facebook & a person's experience with ads?
I kinda have a few guesses, but am curious if anyone can weigh in with more info, how this is crippling and overall what the effect should be. Thanks!
by unstatusthequo on 6/22/24, 10:13 PM
VM172:14 Uncaught TypeError: Cannot read properties of undefined (reading 'click') at <anonymous>:14:71 (anonymous) @ VM172:14
by rayeng on 6/25/24, 1:19 AM
by jeremiemyhren on 6/22/24, 10:23 PM
and this on Chrome on macOS: TypeError: Cannot read properties of undefined (reading 'click') at <anonymous>:14:71
by bequanna on 6/23/24, 7:19 PM
by smashah on 6/22/24, 10:23 PM
by exabrial on 6/23/24, 6:59 PM
by smusamashah on 6/22/24, 11:19 PM
by ThinkBeat on 6/22/24, 11:30 PM
(for some that is a relief for others it is serious)
by exabrial on 6/23/24, 6:45 PM
by JojoFatsani on 6/23/24, 2:50 AM