Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALL facebook.com issues #3367

Open
GetGankNow opened this issue Aug 30, 2018 · 909 comments
Open

ALL facebook.com issues #3367

GetGankNow opened this issue Aug 30, 2018 · 909 comments

Comments

@GetGankNow
Copy link

GetGankNow commented Aug 30, 2018

URL(s) where the issue occurs

Facebook.com

Describe the issue

The Facebook sponsored ads is appearing again, i have tried all the solutions but nothing works

Versions

  • Browser/version: [Chrome 68.0.3440.106]
  • uBlock Origin version: [1.16.18]

Settings

  • [Default]
@KiLL4FuNK
Copy link

I see nothing Can it be adware?
you have to see what programs you installed any
check if you do not have some rare extensions

@GetGankNow
Copy link
Author

No i don't have any adware or some adware extensions, the ads are from Facebook ( sponsored )

@mapx-
Copy link
Contributor

mapx- commented Aug 31, 2018

While on a page with ads, right click on page, save as ..., you'll get a folder + html page, zip them together, upload the zip on some free server. Post here the link.

@GetGankNow
Copy link
Author

Here the page with the sponsored ad: https://ufile.io/y827j

@mapx-
Copy link
Contributor

mapx- commented Aug 31, 2018

@GetGankNow test this filter
facebook.com##.userContentWrapper :has([id^="feed_subtitle_"]:has-text(Sp))

@GetGankNow
Copy link
Author

@mapx- is blocking all post but allowing the comment section and reaction section.

@mapx-
Copy link
Contributor

mapx- commented Aug 31, 2018

facebook.com###substream_1:has([id^="feed_subtitle_"]:has-text(Sp))

@GetGankNow
Copy link
Author

@mapx- works bro, thanks a lot.

@GetGankNow
Copy link
Author

GetGankNow commented Aug 31, 2018

Edit: some sponsored ads are appearing again.

@mapx-
Copy link
Contributor

mapx- commented Aug 31, 2018

another example page ?

@GetGankNow
Copy link
Author

The page that i save include all ads, i don't know how to save the page without the ads of this: facebook.com###substream_1:has([id^="feed_subtitle_"]:has-text(Sp))

@GetGankNow
Copy link
Author

facebook.zip
Here the page again.

@mapx-
Copy link
Contributor

mapx- commented Sep 1, 2018

test

facebook.com##[id^=hyperfeed_story_id_]:has(a[href*="client_token"])
facebook.com##[id^=hyperfeed_story_id_]:has(a[href*="utm_campaign"])

@uBlockOrigin uBlockOrigin deleted a comment Sep 1, 2018
@GetGankNow
Copy link
Author

@mapx- this 3 rules works. Thanks for all!!

@mapx- mapx- closed this as completed in d1b91d6 Sep 1, 2018
ZaphodBeebblebrox added a commit that referenced this issue Sep 1, 2018
mapx- added a commit that referenced this issue Sep 6, 2018
@ghajini
Copy link
Collaborator

ghajini commented Sep 9, 2018

ads 'sponsored'

screenshot 41c

@mapx-
Copy link
Contributor

mapx- commented Sep 9, 2018

test
facebook.com##[id^=hyperfeed_story_id_]:has([id^=u_fetchstream_2_1]:has-text(SpSonSsoSredS))
or
facebook.com##[id^=hyperfeed_story_id_]:has([id^=u_fetchstream_2_1]:has-text(Sp))

@ghajini
Copy link
Collaborator

ghajini commented Sep 9, 2018

not working bro
screenshot 42

@mapx-
Copy link
Contributor

mapx- commented Sep 9, 2018

weird, working for me (exactly using your test-case)

Did you test the same case you uploaded ? or something new ? could be "they" are using different approaches

@shuhaowu
Copy link

Doesn't work for me either. I had to use something like this:

facebook.com##[id^=hyperfeed_story_id_]:has([id^=feed_subtitle_]:has-text(SpSonSsoSredS))

However, with this filter active, FB seems to be refreshing the posts in an infinite loop.

@filbo
Copy link

filbo commented Sep 13, 2018

From about 3mo to about 2wk ago, it was possible to catch Sponsored posts with :has-text(SpSonSsoSredS). This appeared only in Sponsored posts, with the 'S' elements hidden by CSS. (I'm not sure about back then, but now, the hiding CSS uses 'font-size:0', not 'display:none'.)

About 2wk ago, they started putting that stuff into all(*) posts. In Sponsored posts they use CSS to hide the 'S' elements. In 'normal' posts they use CSS to hide all of this. :has-text() is not aware of CSS hiding. The CSS used for this hiding is cryptographically hashed; so far it has remained stable for me, but another user has completely different classes, so the simple selector I use in my own filter won't work for anyone else. So we have to get into runtime evaluation of CSS computed styles :(

[(*)Not really 'all', but all normal posts by users, and many Sponsored posts, although some emitted by other modules inside FB don't use this particular trickery.]

It seems like uBO :matches-css() [see: https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-filters] might be able to handle this. Something like:

facebook.com##[id^=hyperfeed_story_id_]:if([id^=feed_subtitle_] span:has-text(^Sp$):matches-css(:not(display:none)))

-- which is COMPLETELY UNTESTED, just a pile of syntax smashed together by hand. Not sure if the nested uBO selectors are supported...

And all they need to do to break this is chop the word 'Sponsored' up differently; and it won't work for other UI languages. This is getting ugly.

@kowith337
Copy link

kowith337 commented Sep 13, 2018

Maybe need to view the deep of they DOM tag, e.g. looking in data-ajaxify, data-sigil, data-uri, data-ft, data-xt, ...

for example, I've found some part of sponsored URLs have is_sponsored=1 parameter, sometime it's boxed the parameter like [is_sponsored]=1

@wtchangdm
Copy link

wtchangdm commented Sep 13, 2018

Hi, I saw the comment in filters so I'd like report here:
I am not sure if is region-related, but the following rule is killing my timeline (using https://www.facebook.com/?sk=h_chr). All of the posts are hidden now.

facebook.com##[id^=hyperfeed_story_id_]:has([id^=feed_subtitle_]:has-text(SpSonSsoSredS))

Thanks.

mapx- added a commit that referenced this issue Sep 13, 2018
@noosemanAL
Copy link

noosemanAL commented Jul 28, 2024

new browser profile? how do I do that without creating a new email?
Not understanding what you mean, I only have one facebook account so it will only open with my logged in account.

A new Window? Incognito window? don't feel safe logging in my facebook in a not normal profile for fear of their security bot detecting new IP and disabling.

@stephenhawk8054
Copy link
Member

stephenhawk8054 commented Jul 28, 2024

Follow these steps: https://support.google.com/chrome/answer/2364824?co=GENIE.Platform%3DDesktop&oco=0

You don't need to sync or use any email. Just install uBO and log in to facebook and test again.

@stephenhawk8054
Copy link
Member

That is not a new profile with only uBO. I see other extensions too.

@noosemanAL
Copy link

still the same
default

@stephenhawk8054
Copy link
Member

Can you open new tab > reproduce the issue and on that page > click on uBO icon > 💬 Report button > scroll to the bottom > click on Troubleshooting Information and copy paste it here?

@noosemanAL
Copy link

noosemanAL commented Jul 28, 2024

uBlock Origin: 1.58.0
Chromium: 127
filterset (summary):
network: 154042
cosmetic: 102093
scriptlet: 29791
html: 0
listset (total-discarded, last-updated):
added:
adguard-popup-overlays: 27559-900, 11m
adguard-mobile-app-banners: 5356-9, 11m
adguard-other-annoyances: 14813-382, 11m
adguard-widgets: 2620-19, 11m
easylist-annoyances: 4647-52, 11m
easylist-chat: 203-0, 11m
easylist-newsletters: 7387-24, 11m
easylist-notifications: 3118-1189, 11m
ublock-annoyances: 5983-32, 11m
default:
user-filters: 0-0, never
ublock-filters: 39341-596, 11m Δ
ublock-badware: 9832-1, 11m Δ
ublock-privacy: 1042-2, 13m
ublock-unbreak: 2405-0, 11m Δ
ublock-quick-fixes: 162-0, now Δ
easylist: 87468-628, 11m Δ
easyprivacy: 52988-747, 11m Δ
urlhaus-1: 22190-0, 13m
plowe-0: 3548-0, 13m
filterset (user): [empty]
userSettings: [none]
hiddenSettings: [none]
supportStats:
allReadyAfter: 966 ms (selfie)
maxAssetCacheWait: 81 ms
cacheBackend: indexedDB
popupPanel:
blocked: 1
network:
facebook.com: 1
extended:
##+js(json-prune, require.0.3.0.__bbox.define.[].2.is_linkshim_s…
##+js(json-prune, require.0.3.0.__bbox.require.[].3.1.__bbox.res…
##+js(trusted-replace-xhr-response, '/{"brs_content_label":[^,]…
##+js(trusted-replace-xhr-response, /{"node":{"role":"SEARCH_A…
##+js(trusted-replace-xhr-response, /{"node":{"__typename":"Ma…
##+js(trusted-replace-xhr-response, /{"node":{"__typename":"Vi…
##+js(json-prune-xhr-response, data.viewer.instream_video_ads da…
##+js(addEventListener-defuser, scroll, showPopup)

That is default with filters updated. None of mine were added.

@stephenhawk8054
Copy link
Member

You are enabling additional lists. Go to uBO settings and reset to default settings, and test again.

However, I see your sponsored post is at the top. Do you see the sponsored posts when scrolling down?

@noosemanAL
Copy link

yes the sponsored is gone now with default, no list checkmarked

@noosemanAL
Copy link

only ones I checked prior was
Social widgets
EasyList – Social Widgets
AdGuard – Social Widgets
Fanboy – Anti-Facebook

@noosemanAL
Copy link

noosemanAL commented Jul 28, 2024

Unchecked those three in brave and gone from there too

Thank You sir @stephenhawk8054 for your help fixing that.

@marcinlubojanski
Copy link

marcinlubojanski commented Jul 28, 2024

I have problem with "Observe" ("Obserwuj" in polish) and "sponsored" ("sponsorowane") on FB. Disabled the social filters which I have subscribed before but still the same.

@stephenhawk8054
Copy link
Member

Test again in a new browser profile with only uBO and its default settings.

@marcinlubojanski
Copy link

Still the same...

@stephenhawk8054
Copy link
Member

Can you open new tab > reproduce the issue and on that page > click on uBO icon > 💬 Report button > scroll to the bottom > click on Troubleshooting Information and copy paste it here?

@marcinlubojanski
Copy link

marcinlubojanski commented Jul 28, 2024

Here it is:

uBlock Origin: 1.58.0
Chromium: 126
filterset (summary):
network: 149293
cosmetic: 55842
scriptlet: 22144
html: 0
listset (total-discarded, last-updated):
default:
user-filters: 0-0, never
ublock-filters: 39325-318, 50m Δ
ublock-badware: 9835-1, 50m Δ
ublock-privacy: 1042-2, 50m Δ
ublock-unbreak: 2406-0, 50m Δ
ublock-quick-fixes: 172-0, 50m Δ
easylist: 87468-569, 50m Δ
easyprivacy: 52981-640, 50m Δ
urlhaus-1: 22190-0, 1h.50m
plowe-0: 3548-0, 1h.50m
POL-0: 8758-26, 1h.50m
POL-2: 1280-14, 1h.50m
filterset (user): [empty]
userSettings: [none]
hiddenSettings: [none]
supportStats:
allReadyAfter: 1960 ms
maxAssetCacheWait: 22 ms
cacheBackend: indexedDB
popupPanel:
blocked: 1
network:
facebook.com: 1
extended:
##div[role="complementary"] div:not([class]):not([id]) > span:no…
##+js(json-prune, require.0.3.0.__bbox.require.[].3.1.__bbox.res…
##+js(trusted-replace-xhr-response, '/{"brs_content_label":[^,]…
##+js(trusted-replace-xhr-response, /{"node":{"role":"SEARCH_A…
##+js(trusted-replace-xhr-response, /{"node":{"__typename":"Ma…
##+js(trusted-replace-xhr-response, /{"node":{"__typename":"Vi…
##+js(json-prune-xhr-response, data.viewer.instream_video_ads da…

@stephenhawk8054
Copy link
Member

Can you go to chrome://extensions page (type in URL bar) and screenshot it here?

@marcinlubojanski
Copy link

marcinlubojanski commented Jul 29, 2024

Here it is, the only used extension is uBlock Origin and documents google offline
Zrzut ekranu 2024-07-29 080321

@stephenhawk8054
Copy link
Member

Can you share the exact URL where you see the sponsored posts?

@marcinlubojanski
Copy link

just main page of Facebook
https://www.facebook.com/

I see now a lot of "observe" and few "sponsored"

@stephenhawk8054
Copy link
Member

stephenhawk8054 commented Jul 29, 2024

So I changed my language to Polish, and "Obserwuj" looks like engagement / follow / suggested posts, which we don't deal with right now. You can add these as custom filters yourself:

!#if cap_html_filtering
||www.facebook.com/api/graphql/$xhr,replace=/\{"brs_content_label":[^\n]+?"category":"ENGAGEMENT[^\n]+?"cursor":"[^"]+"\}/{}/g
!#else
www.facebook.com##+js(trusted-replace-xhr-response, /\{"brs_content_label":[^\n]+?"category":"ENGAGEMENT[^\n]+?"cursor":"[^"]+"\}/g, {}, /api/graphql)
!#endif

Remember to turn on Allow custom filters requiring trust in "My filters" pane.

Warning: If you see the posts loading "slowly", it's because facebook is just loading all engagement posts and there's little organic posts.


I can't reproduce the sponsored posts though.

@marcinlubojanski
Copy link

Thx it works! Also after adding this filter I don't see the sponsored posts anymore :)

@stephenhawk8054
Copy link
Member

Hmm... Weird, those filters should not be related to sponsored posts.

@marcinlubojanski
Copy link

Yes, this might be coincidence. On the 2nd profile where I didn't apply this filter, I don't see the sponsored posts anymore as well.

BTW Why those "suggested posts" are not part of default filtering? Those are more than half of posts on FB now and I can't imagine anyone willing to see them :D

@stephenhawk8054
Copy link
Member

stephenhawk8054 commented Jul 29, 2024

It's considered as annoyances and was in annoyance list. But currently the filters are disabled due to them causing the post loading very slow or even broken pages for some other users.

@marcinlubojanski
Copy link

Actually I still see some sponsored posts but they are not very often.
Attaching print screen and "inspect element" HTML code for that part of webpage (not sure if it will help)
sponsored_post_div.txt

Zrzut ekranu 2024-07-29 210456

@serial02
Copy link

URL(s) where the problem occurs

Facebook.com

Describe the problem

Facebook pop-up does not block on this line( https://www.facebook.com/privacy/consent/inline/?flow=acv_fb_1st_time_3pd_consent&source=fb_1st_time_3pd_consent_flow)

Facebook sponsored ads are appearing again, I tried all the solutions but nothing works
Versions

Browser/version: [TorBrowser 13.5.1]

uBlock source version: [ uBlock Origin 1.58.0 ]

settings

 [Standard]

Captura de tela de 2024-07-31 07-29-27

Captura de tela de 2024-07-31 07-30-07

@stephenhawk8054
Copy link
Member

stephenhawk8054 commented Aug 10, 2024

@u-RraaLL Sorry, do you remember which path of facebook doesn't have engagement posts?


Oh, is it https://www.facebook.com/?filter=all&sk=h_chr ?

stephenhawk8054 added a commit that referenced this issue Aug 10, 2024
@u-RraaLL
Copy link
Contributor

Oh, is it https://www.facebook.com/?filter=all&sk=h_chr ?

Yes, it is.

@stephenhawk8054
Copy link
Member

Oh, is it https://www.facebook.com/?filter=all&sk=h_chr ?

Yes, it is.

Ok, so we can also recommend this filter if the XHR method doesn't work

||facebook.com/|$doc,uritransform=/\//\/?filter=all&sk=h_chr/

The problem is when clicking on the facebook logo, since it doesn't trigger connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests