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: ALWAYS provide your Troubleshooting Information! #3367

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

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
@MasterKia MasterKia mentioned this issue Dec 27, 2024
11 tasks
@TheGrave
Copy link

Firefox 134.02 on Android 13 - last week or so clicking any button that should render a context menu (e.g. share or view profile) on m.facebook.com is not working. Whitelisting the site fixes it.

@Yuki2718
Copy link
Contributor

Firefox 134.02 on Android 13 - last week or so clicking any button that should render a context menu (e.g. share or view profile) on m.facebook.com is not working. Whitelisting the site fixes it.

Unable to reproduce

@TheGrave
Copy link

Firefox 134.02 on Android 13 - last week or so clicking any button that should render a context menu (e.g. share or view profile) on m.facebook.com is not working. Whitelisting the site fixes it.

Unable to reproduce

I can do a screen recording but not sure if this would be any help.

@Yuki2718
Copy link
Contributor

I can do a screen recording but not sure if this would be any help.

Probably not, first try to reset uBO settings (after backing it up if you need).

@TheGrave
Copy link

TheGrave commented Feb 1, 2025

I can do a screen recording but not sure if this would be any help.

Probably not, first try to reset uBO settings (after backing it up if you need).

I nailed it - issue comes from the setting "Pass and enforce cosmetic filters". Something got updated in these filters the last few weeks which started breaking FB.

@stephenhawk8054
Copy link
Member

stephenhawk8054 commented Feb 1, 2025

"Enforce cosmetic filters" is needed to hide ads and placeholders in the websites. Turning it off will display those in all other websites.

There's no recent commits related to facebook. Facebook is the one updating the code that breaks the filters.

@AloXado320
Copy link

Ads right bar doesn't get blocked
Image

@stephenhawk8054
Copy link
Member

stephenhawk8054 commented Feb 8, 2025

Please always share "Troubleshooting Information" when reporting.

@AloXado320
Copy link

Ah, sorry, here's the information

uBlock Origin: 1.62.0
Chromium: 126
filterset (summary):
 network: 142924
 cosmetic: 48545
 scriptlet: 23775
 html: 0
listset (total-discarded, last-updated):
 default:
  user-filters: 1-0, never
  easylist: 71468-479, 1h.26m Δ
  easyprivacy: 53323-635, 1h.26m Δ
  plowe-0: 3544-0, 1d.3h.14m
  spa-0: 3726-4, 23h.45m
  spa-1: 6261-186, 3d.22h.38m
  ublock-badware: 12232-6, 1h.26m Δ
  ublock-filters: 39936-327, 20m
  ublock-privacy: 1981-33, 1h.26m Δ
  ublock-quick-fixes: 197-0, 1h.26m Δ
  ublock-unbreak: 2552-23, 1h.26m Δ
  urlhaus-1: 21860-0, 23h.45m
filterset (user): [array of 1 redacted]
trustedset:
 added: [array of 175 redacted]
switchRuleset:
 added: [array of 1 redacted]
userSettings: [none]
hiddenSettings: [none]
supportStats:
 allReadyAfter: 1244 ms (selfie)
 maxAssetCacheWait: 324 ms
 cacheBackend: indexedDB
popupPanel:
 blocked: 1
 network:
  facebook.com: 1
 extended:
  ##+js(json-prune, require.0.3.0.__bbox.require.[].3.1.__bbox.res…
  ##+js(trusted-replace-node-text, script, '/null,"category_sensit…
  ##+js(trusted-replace-xhr-response, '/null,"category_sensitive"[…
  ##+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

Which country are you when accessing the site?

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

@AloXado320
Copy link

AloXado320 commented Feb 8, 2025

I'm from Peru.

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

Issue still persist

New profile:
Image

Config:

uBlock Origin: 1.62.0
Chromium: 126
filterset (summary):
 network: 143215
 cosmetic: 48603
 scriptlet: 23773
 html: 0
listset (total-discarded, last-updated):
 default:
  user-filters: 0-0, never
  ublock-filters: 39933-327, now
  ublock-badware: 12231-6, now
  ublock-privacy: 1981-33, now
  ublock-unbreak: 2552-0, now
  ublock-quick-fixes: 204-0, now
  easylist: 71468-479, now
  easyprivacy: 53322-653, now
  urlhaus-1: 22160-5, now
  plowe-0: 3538-0, 1m
  spa-0: 3726-5, 1m
  spa-1: 6319-191, 1m
filterset (user): [empty]
userSettings: [none]
hiddenSettings: [none]
supportStats:
 allReadyAfter: 3116 ms
 maxAssetCacheWait: 27 ms
 cacheBackend: indexedDB
popupPanel:
 blocked: 1
 network:
  facebook.com: 1
 extended:
  ##+js(json-prune, require.0.3.0.__bbox.require.[].3.1.__bbox.res…
  ##+js(trusted-replace-node-text, script, '/null,"category_sensit…
  ##+js(trusted-replace-xhr-response, '/null,"category_sensitive"[…
  ##+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

stephenhawk8054 commented Feb 8, 2025

Ok, I can reproduce when setting language to Spanish.

@Yuki2718 The relevant filter at that section is ##a[aria-label="Advertiser"], however in Spanish it's ##a[aria-label="Anunciante"]. Should it be added to EL? Not sure if we can address all languages?

@stephenhawk8054
Copy link
Member

stephenhawk8054 commented Feb 8, 2025

@AloXado320 Can you test this filter:

facebook.com##+js(json-prune, require.0.3.0.__bbox.require.[].3.1.__bbox.result.data, require.0.3.0.__bbox.require.[].3.1.__bbox.result.data.viewer.sideFeed.nodes.0.ads)

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

@AloXado320
Copy link

Hi, I didn't get to apply the filter, though it seems like the ads are gone, anyway, thanks.

@vikingnope
Copy link

What I am getting is just this:

Image

@AloXado320 Can you test this filter:

facebook.com##+js(json-prune, require.0.3.0.__bbox.require.[].3.1.__bbox.result.data, require.0.3.0.__bbox.require.[].3.1.__bbox.result.data.viewer.sideFeed.nodes.0.ads)

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

But after applying your script, the sponsored text is gone but also the Birthday section too.

@stephenhawk8054
Copy link
Member

@vikingnope I don't have "Birthdays" part so I can't test. Can you test this one instead?

facebook.com##+js(json-prune, require.0.3.0.__bbox.require.[].3.1.__bbox.result.data.viewer.sideFeed.nodes.0.ads)

@vikingnope
Copy link

I cannot get the sponsored text to show up again, seems to have been removed in some way. After doing some checks I know that the below filter seems to be removing it:

Image

@vikingnope I don't have "Birthdays" part so I can't test. Can you test this one instead?

facebook.com##+js(json-prune, require.0.3.0.__bbox.require.[].3.1.__bbox.result.data.viewer.sideFeed.nodes.0.ads)

But I tried this too with the above filter turned off just in case and it worked as intended, the Sponsored text got removed, and the Birthdays stayed there.

@stephenhawk8054
Copy link
Member

Thanks for your testing.

stephenhawk8054 added a commit that referenced this issue Feb 10, 2025
@stephenhawk8054
Copy link
Member

Please share troubleshooting information.

@Yuki2718 Yuki2718 changed the title ALL facebook.com issues ALL facebook.com issues: ALWAYS provide your Troubleshooting Information! Feb 10, 2025
@Macr237
Copy link

Macr237 commented Feb 15, 2025

I only get one or two posts and FB refuses to load anything after that. You can see it trying to load as posts flash momentarily, but that is as far as it gets.

uBlock Origin: 1.62.0
Chromium: 133
filterset (summary):
network: 140194
cosmetic: 41455
scriptlet: 23580
html: 0
listset (total-discarded, last-updated):
default:
user-filters: 0-0, never
ublock-filters: 40073-127, 1h.13m Δ
ublock-badware: 11909-6, 1h.13m Δ
ublock-privacy: 2244-33, 1h.13m Δ
ublock-unbreak: 2557-1, 1h.13m Δ
ublock-quick-fixes: 212-0, 1h.13m Δ
easylist: 71219-606, 1h.13m Δ
easyprivacy: 53333-656, 1h.13m Δ
urlhaus-1: 21780-0, now
plowe-0: 3471-0, now
filterset (user): [empty]
userSettings: [none]
hiddenSettings: [none]
supportStats:
allReadyAfter: 1220 ms (selfie)
maxAssetCacheWait: 80 ms
cacheBackend: indexedDB
popupPanel:
blocked: 1
network:
facebook.com: 1
extended:
##div[role="complementary"] div:not([class]):not([id]) > span:no…
##:matches-path(/^/(?[a-z]+=\w+)?$/) div[aria-posinset] :is(h3…
##+js(json-prune, require.0.3.0.__bbox.require.[].3.1.__bbox.res…
##+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(trusted-replace-node-text, script, '/null,"category_sensit…
##+js(trusted-replace-xhr-response, '/null,"category_sensitive"[…

@Yuki2718
Copy link
Contributor

Yuki2718 commented Feb 15, 2025

@Macr237 Can you add

facebook.com#@#:matches-path(/^\/(\?[a-z]+=\w+)?$/) div[aria-posinset] :is(h3, h4) span > a[href]:not([href^="/groups/"]):not([href*="section_header_type"]):matches-attr(href="/__cft__\[0\]=[-\w]{290,}/"):upward(div[aria-posinset]):style(height: 0 !important; overflow: hidden !important;)

to My filters, refresh the page, and see if your issue is fixed? If fixed, remove the added rule and see if the issue recurs.

@Macr237
Copy link

Macr237 commented Feb 15, 2025

@Yuki2718

facebook.com#@#:matches-path(/^/(?[a-z]+=\w+)?$/) div[aria-posinset] :is(h3, h4) span > a[href]:not([href^="/groups/"]):not([href*="section_header_type"]):matches-attr(href="/cft[0]=[-\w]{290,}/"):upward(div[aria-posinset]):style(height: 0 !important; overflow: hidden !important;)

Unfortunately, this has not fixed the issue.

Macr

@stephenhawk8054
Copy link
Member

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

@serial02
Copy link

Hey guys

I have 3 Facebook profiles, but this only appears this pop-up. I managed to block it manually, but if they can include it in the good I am grateful. Following Image:

Image

@Yuki2718
Copy link
Contributor

@serial02 I haven't seen that popup. What is it saying in English?

@stephenhawk8054 stephenhawk8054 marked this as a duplicate of #27215 Feb 16, 2025
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