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 · 831 comments
Open

ALL facebook.com issues #3367

GetGankNow opened this issue Aug 30, 2018 · 831 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
@michaelboatright
Copy link

michaelboatright commented May 7, 2024 via email

@u-RraaLL
Copy link
Contributor

u-RraaLL commented May 7, 2024

Yes, you can test by pasting into "My filters" and hitting Apply.

BTW - please do not reply via email.

@michaelboatright
Copy link

michaelboatright commented May 8, 2024 via email

@Yuki2718
Copy link
Contributor

Yuki2718 commented May 8, 2024

Shouldn't that be covered by f743632 ? Update filters and test again.

@michaelboatright
Copy link

michaelboatright commented May 8, 2024 via email

stephenhawk8054 added a commit that referenced this issue May 10, 2024
@Copperplate
Copy link

uBlock Origin is forcing any YouTube link thumbnails in Facebook posts to disappear. Everything works when I disable uBlock origin. Thanks for looking into this.

@stephenhawk8054
Copy link
Member

stephenhawk8054 commented May 11, 2024

@Copperplate Can you test these filters?

facebook.com#@#a[aria-label][href*="&fbclid="]
facebook.com#@#a[aria-label][href*="26fbclid%"]

Click on uBO icon > ⚙ Dashboard button > Add the filter(s) in "My filters" pane > ✓ Apply changes > Open new tab and test again.

Yuki2718 added a commit that referenced this issue May 11, 2024
@Copperplate
Copy link

Thanks so much, @stephenhawk8054 and @Yuki2718 ! I didn't get a chance to test those filters, but as of the time of this message, the issue appears to be resolved on Facebook, and YouTube thumbnails are now showing correctly in posts. Thank you for all your hard work! :-)

@michaelboatright

This comment was marked as resolved.

@sudou-kaname
Copy link

Can someone help me with this problem? So I want to block video elements including reels or short videos on Facebook.
for reels, everything is blocked including the description.
for videos, only video elements are blocked. for the posting name and description remain displayed.

ssfb1

ssfb2

@Yuki2718
Copy link
Contributor

Yuki2718 commented May 28, 2024

@sudou-kaname I don't understand what is your problem. Explain what you want to achieve and what is the barrier. But note this is an issue ticket, Discussion is the place for such requests .

@ThoomasNL
Copy link

ThoomasNL commented May 28, 2024

Not sure, if this is the right procedure to report. With Ublock enabled, I see the following behavior on Facebook. The first item in the timeline is displayed, followed by the reels or friend suggestions and then two empty entries. Timeline is for the rest empty:

image

The rest of the page might eventually load after several minutes. No problems with UBlock disabled.

uBlock Origin: 1.57.2
Firefox: 126
filterset (summary):
 network: 136591
 cosmetic: 46388
 scriptlet: 19545
 html: 1828
listset (total-discarded, last-updated):
 default:
  user-filters: 0-0, never
  ublock-filters: 38285-112, now
  ublock-badware: 8947-0, now
  ublock-privacy: 951-2, now
  ublock-unbreak: 2349-2, now
  ublock-quick-fixes: 164-68, now
  easylist: 87238-166, now
  easyprivacy: 50987-64, now
  urlhaus-1: 13430-0, now
  plowe-0: 3727-1159, now
filterset (user): [empty]
userSettings: [none]
hiddenSettings: [none]
supportStats:
 allReadyAfter: 3512 ms (selfie)
 maxAssetCacheWait: 947 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.[-].__bbox.r…
  ##+js(json-prune, require.0.3.0.__bbox.require.[].3.1.__bbox.res…

@Yuki2718
Copy link
Contributor

@ThoomasNL Does adding

facebook.com#@#div[role="complementary"] div:not([class]):not([id]) > span:not([class]):not([id]):not([aria-labelledby])

to My filters and refreshing the page fixes the issue?

@ThoomasNL
Copy link

@Yuki2718 Thanks for your reaction. The issue actually went away, after having added that line. However, it is also no longer reproducible on my other computer, where I had not yet added it. So I cannot tell, whether that line is helping or whether is was coincidence. Will monitor it for a while and keep you posted.

@ThoomasNL
Copy link

@Yuki2718 Seems like the issue is not uBlock related. I originally thought it was, because FB loaded fine, after disabling uBlock. However, when you immediately re-enable it, FB still loads fine. The empty entries disaapear after you reload the page one to three times, no matter if uBlock is enabled or not.

@michaelboatright
Copy link

michaelboatright commented Jun 3, 2024 via email

@D4niloMR
Copy link
Contributor

D4niloMR commented Jun 3, 2024

I can reproduce Facebook trying to load posts for a very long time and this works for me:

www.facebook.com#@#+js(trusted-replace-xhr-response, '/\{"brs_content_label":[^,]+,"category":"ENGAGEMENT[^\n]+"cursor":"[^"]+"\}/g', {}, /api/graphql)

@ThoomasNL
Copy link

Tried that setting and for me, it does not improve things.

@noosemanAL
Copy link

sponsored ads showing on facebook again even after update on older Brave browser Version 1.49.120 Chromium: 111.0.5563.64

@D4niloMR
Copy link
Contributor

@noosemanAL test:

www.facebook.com#@#+js(trusted-replace-xhr-response, '/\{"brs_content_label":[^,]+,"category":"SPONSORED"[^\n]+"cursor":"[^}]+\}/g', {}, /api/graphql)
www.facebook.com##+js(trusted-replace-xhr-response, '/\{"brs_content_label":[^,]+,"(?:category|feed_story_category)":"SPONSORED"[^\n]+"cursor":"[^}]+\}/g', {}, /api/graphql)

Click on uBO icon > ⚙️ Dashboard button > Add the filter(s) in "My filters" pane > ✓ Apply changes

@noosemanAL
Copy link

@noosemanAL test:

www.facebook.com#@#+js(trusted-replace-xhr-response, '/\{"brs_content_label":[^,]+,"category":"SPONSORED"[^\n]+"cursor":"[^}]+\}/g', {}, /api/graphql)
www.facebook.com##+js(trusted-replace-xhr-response, '/\{"brs_content_label":[^,]+,"(?:category|feed_story_category)":"SPONSORED"[^\n]+"cursor":"[^}]+\}/g', {}, /api/graphql)

Click on uBO icon > ⚙️ Dashboard button > Add the filter(s) in "My filters" pane > ✓ Apply changes

No, Didn't hide, Just started withing past 6 hours

@stephenhawk8054
Copy link
Member

@noosemanAL Can you screenshot "My filters" pane?

@noosemanAL
Copy link

noosemanAL commented Jun 15, 2024

way too much
ss

@stephenhawk8054
Copy link
Member

@noosemanAL You need to turn on Allow custom filters requiring trust to use D4niloMR's filters above

@noosemanAL
Copy link

@noosemanAL You need to turn on Allow custom filters requiring trust to use D4niloMR's filters above

TY

@stephenhawk8054
Copy link
Member

@noosemanAL Do the filters work?

@noosemanAL
Copy link

@noosemanAL Do the filters work?

Yes Sir

D4niloMR added a commit that referenced this issue Jun 15, 2024
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