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 · 1,008 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
@stephenhawk8054
Copy link
Member

There was an update some minutes ago. Wait about 10 minutes and force update the quick fix list again as said above: #3367 (comment)

stephenhawk8054 added a commit that referenced this issue Mar 21, 2025
@stephenhawk8054
Copy link
Member

You mean the cosmetic filter above?

Yes

I don't know. If more people complain about it, maybe I'll add the filter. The problem is I don't have other links in the sidebar to compare the links inside. Some people have "Birthdays" section: #3367 (comment) for example.

@kodiakhub
Copy link

I don't know. If more people complain about it, maybe I'll add the filter. The problem is I don't have other links in the sidebar to compare the links inside. Some people have "Birthdays" section: #3367 (comment) for example.

I see. If someone on your friends list has a birthday that day, it shows up there. Yes, I know that. 😄

@stephenhawk8054
Copy link
Member

If someone on your friends list has a birthday that day, it shows up there.

Thing is I don't use facebook and only have a test account without any friends. I do follow some people but I doubt there would be birthday section of them.

@michaelboatright
Copy link

michaelboatright commented Mar 21, 2025 via email

@michaelboatright

This comment has been minimized.

@kodiakhub
Copy link

If someone on your friends list has a birthday that day, it shows up there.

Thing is I don't use facebook and only have a test account without any friends. I do follow some people but I doubt there would be birthday section of them.

Strange, I forced the filter update once again due to filters being updated 4 times, now it blocks sidebar ads instantly instead of slowly blocking. 😅

Video

SSS.mp4

@stephenhawk8054
Copy link
Member

Maybe because of cache. I usually have to clear facebook's cache to reproduce some issues more reliably.

You can try to clear the cache at: https://github.com/user-attachments/assets/4c3dff6f-0313-49dd-99b0-a8957a7c73f4

@michaelboatright
Copy link

michaelboatright commented Mar 21, 2025 via email

@stephenhawk8054
Copy link
Member

@michaelboatright You can go to uBO settings -> scroll down and backup your configuration, then reset to default settings.

@michaelboatright
Copy link

michaelboatright commented Mar 21, 2025 via email

@tkp206093
Copy link

I waited for 2 hours, but the quick fixes also made Facebook unable to load any posts to view.

@stephenhawk8054
Copy link
Member

Can you click on the eye icon at the end of quick fix list and screenshot to here?

@tkp206093
Copy link

tkp206093 commented Mar 21, 2025

Image

@stephenhawk8054
Copy link
Member

@tkp206093 How did you update that list?

@tkp206093
Copy link

Click the clock next to Quick fixes to perform a forced update.

@stephenhawk8054
Copy link
Member

In the previous comment, I told you to click on this link to update the filter list, not clicking on the clock.

@tkp206093
Copy link

Image
After clicking, scrolling through Facebook still only shows the first post. No matter how much you scroll or wait, nothing else will load, and it keeps showing the loading indicator. Only by disabling Quick fixes can Facebook display normally.

@stephenhawk8054
Copy link
Member

@tkp206093 Which browser are you using?

@tkp206093
Copy link

Microsoft Edge 134.0.3124.72 64bit

@stephenhawk8054
Copy link
Member

@tkp206093 Can you test this filter:

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

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

@tkp206093
Copy link

Tset this with disabling Quick fixes?

@stephenhawk8054
Copy link
Member

No, with everything's default. Don't disable anything.

@tkp206093
Copy link

tkp206093 commented Mar 21, 2025

Add the code can fix the problem 😘

@stephenhawk8054
Copy link
Member

stephenhawk8054 commented Mar 21, 2025

That filter will show the sponsored posts though.

stephenhawk8054 added a commit that referenced this issue Mar 21, 2025
@NOTORIOUSVR
Copy link

NOTORIOUSVR commented Mar 21, 2025

@tkp206093 Can you test this filter:

web.facebook.com,www.facebook.com#@#+js(trusted-replace-xhr-response, '/null,"category":"SPONSORED"[^\n]+?"__typename":"SponsoredData"[^\n]+"cursor":"[^"]+"}/g', null}, /api/graphql)
Click on uBO icon > ⚙ Dashboard button > Add the filter(s) in "My filters" pane > ✓ Apply changes > Open new tab and test again.

This doesn't work for me - same result as using the filters here: https://www.reddit.com/r/uBlockOrigin/wiki/solutions#wiki_facebook

Only first post shows up unless I disable UB completely for FB.

https://imgur.com/8iYG4AI

@stephenhawk8054
Copy link
Member

@NOTORIOUSVR Which browser are you using?

@NOTORIOUSVR
Copy link

NOTORIOUSVR commented Mar 21, 2025

@NOTORIOUSVR Which browser are you using?

Chrome - and oddly enough when I went to about>help to get you the version number it updated and now FB is working again with your filter... LOL

Anyway current ver. 134.0.6998.166 (Official Build) (64-bit)

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