ryanbr / fanboy-adblock

335 stars 57 forks source link

Anti-Facebook List - sponsored posts #1179

Open WalrusInAnus opened 5 years ago

WalrusInAnus commented 5 years ago

Over the past I don't know, two weeks maybe? Facebook became totally infested with sponsored posts. Can you investigate please?

liamengland1 commented 5 years ago

Can you test these filters one by one and tell me if any work? We're having the same issue over at https://github.com/uBlockOrigin/uAssets/issues/3367.

facebook.com##div[id^=hyperfeed_story_id_]:has(span[data-ft="{\"tn\":\"j\"}"])
facebook.com##.pagelet-group .pagelet:has(a:has-text(Sponsored))
facebook.com##div[id^=hyperfeed_story_id_]:has(._3c21):has(.fbEmuTracking)
facebook.com##div[id^=hyperfeed_story_id_]:has(a[role^=button]:has(> span:has([data-content]):not(:has([data-content="1"])):not(:has([data-content="2"])):not(:has([data-content="3"])):not(:has([data-content="4"])):not(:has([data-content="5"])):not(:has([data-content="6"])):not(:has([data-content="7"])):not(:has([data-content="8"])):not(:has([data-content="9"])):not(:has([data-content="w"]))))
facebook.com##div[id^=hyperfeed_story_id_]:has(a[role^=button]):has(iframe[src*="xti"])
krystian3w commented 5 years ago

Or if you still use ABP / AdBlock:

facebook.com#?#div[id^="hyperfeed_story_id_"]:-abp-has(span[data-ft="{\"tn\":\"j\"}"])
facebook.com#?#.pagelet-group .pagelet:-abp-has(a:-abp-contains(Sponsored))
facebook.com#?#div[id^="hyperfeed_story_id_"]:-abp-has(._3c21):-abp-has(.fbEmuTracking)
facebook.com#?#div[id^="hyperfeed_story_id_"]:-abp-has(a[role^="button"]:-abp-has(> span:-abp-has([data-content"]):not(:-abp-has([data-content="1"])):not(:-abp-has([data-content="2"])):not(:-abp-has([data-content="3"])):not(:-abp-has([data-content="4"])):not(:-abp-has([data-content="5"])):not(:-abp-has([data-content="6"])):not(:-abp-has([data-content="7"])):not(:-abp-has([data-content="8"])):not(:-abp-has([data-content="9"])):not(:-abp-has([data-content="w"]))))
facebook.com#?#div[id^="hyperfeed_story_id_"]:-abp-has(a[role^="button"]):-abp-has(iframe[src*="xti"])

But:

:not(:-abp-*(...)) and :-abp-*(...):-abp-*(...)... is not supported by both addons. No implemented in this addons and maybe no should fast added suport.

ghost commented 5 years ago

@llacb47 only

facebook.com##div[id^=hyperfeed_storyid]:has(a[role^=button]):has(iframe[src*="xti"])

Seems to work (ublock). But there's a delay of 2 seconds before it blocks them

WalrusInAnus commented 5 years ago

Any news?

liamengland1 commented 5 years ago

Do those filters work for you?

WalrusInAnus commented 5 years ago

I didn't have time to test, and I got a notifications about more people replying here, so I thought someone was quicker.

WalrusInAnus commented 5 years ago

If there is a solution, will anyone add it to the filter?

ansul1001 commented 5 years ago

Still working for me no sponsored post in my feed

facebook.com##div[id^=hyperfeed_story_id_]:has(a[role^=button]:has(> span:has([data-content="S"]):not(:has([data-content="1"])):not(:has([data-content="2"])):not(:has([data-content="3"])):not(:has([data-content="4"])):not(:has([data-content="5"])):not(:has([data-content="6"])):not(:has([data-content="7"])):not(:has([data-content="8"])):not(:has([data-content="9"])):not(:has([data-content="w"]))))

ansul1001 commented 5 years ago

Or if you still use ABP / AdBlock:

facebook.com#?#div[id^="hyperfeed_story_id_"]:-abp-has(span[data-ft="{\"tn\":\"j\"}"])
facebook.com#?#.pagelet-group .pagelet:-abp-has(a:-abp-contains(Sponsored))
facebook.com#?#div[id^="hyperfeed_story_id_"]:-abp-has(._3c21):-abp-has(.fbEmuTracking)
facebook.com#?#div[id^="hyperfeed_story_id_"]:-abp-has(a[role^="button"]:-abp-has(> span:-abp-has([data-content"]):not(:-abp-has([data-content="1"])):not(:-abp-has([data-content="2"])):not(:-abp-has([data-content="3"])):not(:-abp-has([data-content="4"])):not(:-abp-has([data-content="5"])):not(:-abp-has([data-content="6"])):not(:-abp-has([data-content="7"])):not(:-abp-has([data-content="8"])):not(:-abp-has([data-content="9"])):not(:-abp-has([data-content="w"]))))
facebook.com#?#div[id^="hyperfeed_story_id_"]:-abp-has(a[role^="button"]):-abp-has(iframe[src*="xti"])

But:

:not(:-abp-*(...)) and :-abp-*(...):-abp-*(...)... is not supported by both addons. No implemented in this addons and maybe no should fast added suport. This should work for ad block code below

facebook.com#?#div[id^="hyperfeed_story_id_"]:-abp-has(a[role^="button"]:-abp-has(> span:-abp-has([data-content='S"]):not(:-abp-has([data-content="1"])):not(:-abp-has([data-content="2"])):not(:-abp-has([data-content="3"])):not(:-abp-has([data-content="4"])):not(:-abp-has([data-content="5"])):not(:-abp-has([data-content="6"])):not(:-abp-has([data-content="7"])):not(:-abp-has([data-content="8"])):not(:-abp-has([data-content="9"])):not(:-abp-has([data-content="w"]))))

liamengland1 commented 5 years ago

Wrap in code block please https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code

WalrusInAnus commented 5 years ago

So is anyone going to update the filter?

krystian3w commented 5 years ago

Wrap in code block please

should enough if you try multiple space in string, split line look better as scrollbar.

So is anyone going to update the filter?

Fanboy Tracking list? Nope...?

WalrusInAnus commented 5 years ago

"Anti-Facebook List" It's in the title.

krystian3w commented 5 years ago

IMO also nope, no solution for ABP, list no support extend syntax for uBlock Origin / AdGuard Adblocker (AdGuard have own solution with scriplet).

ryanbr commented 5 years ago

I would support both implementations, if it could cover both extensions.

WalrusInAnus commented 5 years ago

Seriously, will anyone update the filter list please? My FB is infested with sponsored shit.

liamengland1 commented 5 years ago

Did you ever test any of the filters posted here?

WalrusInAnus commented 5 years ago

No, I leave that to more experienced people.