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

ALL facebook.com issues #3367

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

ilikenwf commented Nov 8, 2024

It appears that sometimes, on the loading of the content, that the Marketplace pages get completely emptied out:

https://www.facebook.com/marketplace/item/1261785508162694/

@DarkLBP
Copy link

DarkLBP commented Nov 20, 2024

The following rule from quick fixes seems to significantly impact the time it takes the site to start loading.
Nothing loads from the page until the first request that retrieves the html is done.

||facebook.com^$doc,replace=/null,"category_sensitive"[^\n]+?,"__typename":"SponsoredData"[^\n]+"cursor":"[^"]+"\}/null}/g,to=web.facebook.com|www.facebook.com

stephenhawk8054 added a commit that referenced this issue Nov 21, 2024
@stephenhawk8054
Copy link
Member

stephenhawk8054 commented Nov 21, 2024

@DarkLBP Can you test if these filters still cause slow loading?

||facebook.com^$doc,replace=/null,"category_sensitive"[^\n]+?,"__typename":"SponsoredData"[^\n]+"cursor":"[^"]+"\}/null}/g,to=web.facebook.com|www.facebook.com,badfilter
web.facebook.com,www.facebook.com##+js(rpnt, script, '/null,"category_sensitive"[^\n]+?,"__typename":"SponsoredData"[^\n]+"cursor":"[^"]+"\}/g', null})

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

@DarkLBP
Copy link

DarkLBP commented Nov 21, 2024

@stephenhawk8054 With those filters the site loads fine

@stephenhawk8054
Copy link
Member

@DarkLBP Just to be sure, can you screenshot "My filters" pane to here?

@DarkLBP
Copy link

DarkLBP commented Nov 21, 2024

@stephenhawk8054

Captura de pantalla 2024-11-21 092850

@michaelboatright
Copy link

michaelboatright commented Nov 25, 2024 via email

@michaelboatright
Copy link

michaelboatright commented Nov 25, 2024 via email

@stephenhawk8054
Copy link
Member

stephenhawk8054 commented Nov 25, 2024

Please reply directly on github. Don't reply via email. Images cannot be sent via email and the comment format is messed up.

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

@Raidware
Copy link

Raidware commented Nov 25, 2024

I cannot copy texts in this post with mobile browsers. plus all annoyances filter are open. Note: I didnt login the facebook. try it with private window

https://www.facebook.com/story.php?story_fbid=1199429540466793&id=147566088986482

@DueToDataP2PTrader
Copy link

1st issue: Facebook's video volume not showing up hover after i activate the filter.
2nd issue: Facebook's messages (not messenger.com) doesn't show up react/share/reply icons on hover, i must click on the block to show them up.

@stephenhawk8054
Copy link
Member

stephenhawk8054 commented Dec 8, 2024

Share exact URL where you see the issue. Then 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.

We can't do anything with just those descriptions.

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