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

ALL facebook.com issues #3367

GetGankNow opened this issue Aug 30, 2018 · 645 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
Yuki2718 added a commit that referenced this issue Aug 22, 2023
@Yuki2718
Copy link
Contributor

Yuki2718 commented Aug 23, 2023

screen-shot of the HTML structure with the rule hiding the correct video article:

Oh, wait, is this really correct video? If so, my fix should not work. If it worked, it may be only because of FB's random insertion of dummy characters.

@zbluebugz
Copy link

@Yuki2718 Yes, there's 60 span tags. Only some of them are used to spell out the word "Sponsored".

This HTML structure:
#watch_feed div:not([class]) > div:not([class]) div[class] span[class] > a span[aria-labelledby] > span[style="display: flex;"] > span[class]
is slightly shorter version of your rule, but is picking up the 60 SPAN tags in the post. We can reduce the count by dropping the last part of the HTML structure.

i.e.:
#watch_feed div:not([class]) > div:not([class]) div[class] span[class] > a span[aria-labelledby] > span[style="display: flex;"]
This refinement works well for me.

The above two HTML structures are only found in Sponsored video posts.

@Imna1975

This comment was marked as outdated.

@u-RraaLL
Copy link
Contributor

Make a backup of your config and restore to defaults then go to "Filter lists" and update them without loading anything from your config.

If it's still broken, we can talk. Otherwise, it's up to you to figure out on your own when you enable bunch of random lists.

These will help: https://github.com/gorhill/uBlock/wiki/The-logger https://github.com/gorhill/uBlock/wiki/DOM-inspector

@stephenhawk8054
Copy link
Member

stephenhawk8054 commented Sep 15, 2023

Looks like we are using many :is filters for facebook. Does anyone see any issues similar to this: uBlockOrigin/uBlock-issues#2818 ?

@u-RraaLL
Copy link
Contributor

The regression is this :procedural-filter(x) :is(y).

Do we have any filters like that? I think we only had :is before procedurals so they shouldn't be affected.

@Yuki2718
Copy link
Contributor

Yuki2718 commented Sep 16, 2023

Do we have any filters like that?

No, the closest will be

##.m[data-type="vscroller"] > :is(.bg-s2, .bg-s3):has(+ :is(.bg-s2, .bg-s3) + :is(.bg-s2, .bg-s3):has(> .m > .m .nb[style*="clip-path:inset(0 0 0 0 round 4px)"] > [style*="margin-top:1px;"][style*="margin-left:1px;"]))

But Japanese filter has

realtime-chart.info#$?#div[id] > [id]:has(> [style^="top:1"]:matches-attr("style"="/top\s*:\s*1\d{3}\.?\d*px/")) + * > [style^="top:1"]:matches-attr("style"="/top\s*:\s*1\d{3}\.?\d*px/") > [style*="font-size:"]:is(b, span, a):not(:has(td > a)) { font-size: 0 !important; pointer-events: none !important; }

@macerg
Copy link

macerg commented Sep 25, 2023

Sorry if this is a duplicate post. I've had a look through but can't find it.
Is there a way of stopping the 'Suggested For You' posts? I don't have adverts as such.

@u-RraaLL
Copy link
Contributor

For mobile? Maybe. If you have the same structure I had recently: https://www.reddit.com/r/uBlockOrigin/wiki/solutions/#wiki_fb_feed_inserts

@Yuki2718
Copy link
Contributor

Hiding Suggested For You can potentially cause very occasional infinite load.

@macerg
Copy link

macerg commented Sep 26, 2023

For mobile? Maybe. If you have the same structure I had recently: https://www.reddit.com/r/uBlockOrigin/wiki/solutions/#wiki_fb_feed_inserts

That seems to have done it! Thanks a lot!

@KamiyaMinoru
Copy link

KamiyaMinoru commented Sep 30, 2023

I use

www.facebook.com##[aria-posinset] div:not(:only-child)>div:only-child>div:only-child>div:first-child[class=""]>div:not([data-0]):has-text(/^Suggested/):upward([aria-posinset])

and modify it to

www.facebook.com##[aria-posinset] div:not(:only-child)>div:only-child>div:only-child>div:first-child[class=""]>div:not([data-0]):has-text(/おすすめ/):upward([aria-posinset])

but it does not work at all.

https://github.com/uBlockOrigin/uAssets/assets/78710607/6a6c12ae-8a09-4f32-9539-3eaed0ac1e89

@u-RraaLL
Copy link
Contributor

You're trying to use the desktop solution on mobile. The mobile solution is on the bottom of the code box.

@macerg
Copy link

macerg commented Oct 1, 2023

Hiding Suggested For You can potentially cause very occasional infinite load.

Is that where you see the blank pages? I get lots of those sometimes.

@palur76
Copy link

palur76 commented Oct 15, 2023

Hi!
Facebook posts older than 1 day showing only 1 dot instead of the publishing date. How to avoid this?
Turning off uBlock Origin repairs the issue...
Thanks

@u-RraaLL
Copy link
Contributor

Post your Troubleshooting Info from Facebook: https://github.com/uBlockOrigin/uAssets/assets/66517106/f50a27a9-7acd-481a-85cf-fa17cc35a19f

@palur76
Copy link

palur76 commented Oct 15, 2023

Post your Troubleshooting Info from Facebook: https://github.com/uBlockOrigin/uAssets/assets/66517106/f50a27a9-7acd-481a-85cf-fa17cc35a19f

uBlock Origin: 1.52.2
Firefox: 118
filterset (summary):
 network: 105776
 cosmetic: 41695
 scriptlet: 18633
 html: 1085
listset (total-discarded, last-updated):
 default:
  user-filters: 60-0, never
  ublock-filters: 35831-240, 1h.25m
  ublock-badware: 7267-0, 1h.25m
  ublock-privacy: 591-0, 1h.25m
  ublock-unbreak: 2183-0, 1h.25m
  easylist: 71808-549, 1h.25m
  easyprivacy: 33189-770, 1h.25m
  plowe-0: 3729-1, 1h.25m
  HUN-0: 2071-4, 1h.25m
  urlhaus-1: 11950-0, 1h.25m
  ublock-quick-fixes: 220-1, 1h.25m
filterset (user): [array of 60 redacted]
trustedset:
 added: [array of 71 redacted]
 removed:
  about-scheme
switchRuleset:
 added: [array of 2 redacted]
userSettings:
 advancedUserEnabled: true
hiddenSettings: [none]
supportStats:
 allReadyAfter: 291 ms (selfie)
 maxAssetCacheWait: 123 ms
popupPanel:
 blocked: 40
 network:
  facebook.com: 40
 extended:
  ##body > div > div.__fb-light-mode
  ##div[role="complementary"] div:not([class]):not([id]) > span:no…
  ##.AdBox
  ##.post-ads
  ##.dfp_unit
  ##div[aria-posinset] :is(h3, h4) span > a[href]:not([href^="/gro…

@Yuki2718
Copy link
Contributor

Also provide the exact URL the issue occurs and your Facebook language settings. I can't reproduce with English (US).

@u-RraaLL
Copy link
Contributor

u-RraaLL commented Oct 15, 2023

I can't reproduce either. Try making a backup and resetting to defaults to see if the issue shows up on default settings.
Then you can also try disabling your local HUN list after that to see if it doesn't cause this. Are you using Hungarian locale on FB too?

I tested on Magyar with the HUN list enabled and the timestamps are all there. It's all 2 n., 21 ò., which I'm assuming is days and hours, and full dates for longer than a week.

The only difference (that I can tell atm) is that I'm using dark mode, and based on the first reported extended filter, you're using light mode.

@palur76
Copy link

palur76 commented Oct 16, 2023

OK, I'll try to reset to default, than once turn on the filters. Hope, find what is causing this.

Sorry for the false alarm.

@macerg
Copy link

macerg commented Oct 21, 2023

Can anyone help me filter this panel out please? On m.facebook.com (mobile).
https://github.com/uBlockOrigin/uAssets/assets/4559048/e3d813a6-d633-47eb-a104-a22b8340eed9

@u-RraaLL
Copy link
Contributor

Is it on the main feed?

@macerg
Copy link

macerg commented Oct 21, 2023

Is it on the main feed?

Yes.

@kracov

This comment was marked as outdated.

@KamiyaMinoru
Copy link

Is it on the main feed?

Yes.

I use https://www.fbpurity.com/

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