Live data from Hacker News

Show HN: Simple script to cripple personalized targeting from Facebook

gist.github.com

11–20 of 124 posts

Re: Show HN: Simple script to cripple personalized targeting from Facebook

#11

Earlier quoted context omitted.

Ah, that's not a browser delay. That's an internet speed issue. I'll have to add more resilience to account for that. Thanks!

yeah, clicking into an advertiser has a ~5 second delay to /api/graphql/ at the moment. I was working on resiliency myself

Lawdy, that's a serious delay!

Okay, I'll see what I can do to wait for NETWORK_IDLE or something

Re: Show HN: Simple script to cripple personalized targeting from Facebook

#12
Intresting, for me the link 404's

  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

Re: Show HN: Simple script to cripple personalized targeting from Facebook

#13
post #4

Does this just impact ads shown on the site, or does it also cut down on data collection and targeting that occurs when you browse to third party sites who happen to include javascript from Facebook? How's this technique compare to just staying logged out of Facebook? Or using it solely in a sandboxed browsing environment?

Even if you stay logged out, your data is collected from your mobile devices. And even if you brick your devices and pull the battery, your data is collected by other people's mobile devices. It all runs to data brokers in the end, and that data has a reliance on Facebook for additional refinement. This technique impacts that refinement step.

You sound like you have intimate knowledge of the landscape. What would be a great disruption?

Re: Show HN: Simple script to cripple personalized targeting from Facebook

#16
post #5
post #3

Cool script. 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 h…

My hack is to live in a country that forces Facebook to give me an opt-out, and then I click "no" when Facebook asks.

my hack is just to not have facebook

Re: Show HN: Simple script to cripple personalized targeting from Facebook

#17
This got a little stuck on a few of the `.click()` calls for me. Here's my version:

    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]);
    }

Re: Show HN: Simple script to cripple personalized targeting from Facebook

#18
post #5

Earlier quoted context omitted.

My hack is to live in a country that forces Facebook to give me an opt-out, and then I click "no" when Facebook asks.

my hack is just to not have facebook

My hack is being just young enough that having a Facebook would make me feel old.

Re: Show HN: Simple script to cripple personalized targeting from Facebook

#19
post #5

Earlier quoted context omitted.

My hack is to live in a country that forces Facebook to give me an opt-out, and then I click "no" when Facebook asks.

my hack is just to not have facebook

But I'm addicted to the feed!

Re: Show HN: Simple script to cripple personalized targeting from Facebook

#20
post #5

Earlier quoted context omitted.

My hack is to live in a country that forces Facebook to give me an opt-out, and then I click "no" when Facebook asks.

my hack is just to not have facebook

Facebook makes shadow profiles of you anyway
Post reply on HN