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

Google / Facebook / Twitter #3

Open
kowith337 opened this issue Jan 31, 2017 · 11 comments
Open

Google / Facebook / Twitter #3

kowith337 opened this issue Jan 31, 2017 · 11 comments

Comments

@kowith337
Copy link

Google

||google.*/promos$important found this connection while i'm searching on, suspect to use for promote/suggest to install Google Chrome (Especially when you're not use Google Chrome/Pure Chromium)

Twitter

||twitter.com/i/cards/*?advertiser_name$important it's loaded as frame, probably for show promoted tweet, but I think it not useful because promoted tweets still show in Twitter timeline.
It seems already hidden when use uBo and apply uBlock filters, but I think currently have none of any filter lists block this request.

Facebook

  • ||facebook.com/pubcontent/feed_chaining$important found this after liked/reacted post from pages (or friend's post that shared post from pages), don't know blocking this also prevent nagging drop-down panel to show? (related, featured for you, similar, etc.)
  • /xfbml.ad.js$important Advert scripts that made by Facebook, should block as all scope (any party), don't know is EasyList still blocked this?

And I want to suggest you to workaround with advert prefs page because ||facebook.com/ads$important is blocking way to manage advert prefs and cannot manage them properly.

  • Got browser auto-refresh while trying to delete them, and any changes doesn't made in advert prefs manager
  • or deleted categories/advertisers still appear in your profile after refresh.

In my side, I'm still block ||facebook.com/ads but not added $important tag to let some exception rules can be allowed.
Note: it's not related to ||facebook.com/ajax/ads$important

To allow Facebook retrieved data (that silently saved your preferences) of how many categories and/or advert companies into your account.
@@||facebook.com/ads/preferences/report$xmlhttprequest,first-party
@@||facebook.com/ads/profile/advertisers$xmlhttprequest,first-party
@@||facebook.com/ads/profile/interests$xmlhttprequest,first-party

allow those requests below to sent request to Facebook that you really want to delete those categories and companies.
@@||facebook.com/ads/preferences/advertiser_hideall$first-party
@@||facebook.com/ads/preferences/edit_interests/?*action=del$first-party

and counter the exception to prevent accidentally (re)added, such as undo.
||facebook.com/ads/preferences/advertiser_hideall/?*undo=true$important
||facebook.com/ads/preferences/edit_interests/?action=add$important

@toshiya44
Copy link
Owner

toshiya44 commented Jan 31, 2017

Added them

Does ||facebook.com/ajax/ads$important work fine?

@kowith337
Copy link
Author

@toshiya44 Yes, it's fine to keep blocking, no matter why.

@kowith337
Copy link
Author

How about blocking nag popup overlay while viewing public posts or pages?

facebook.com###pagelet_growth_expanding_cta:has(a[id^="expanding_cta_login_button"])
facebook.com###pagelet_growth_expanding_cta:has(a[id^="expanding_cta_reg_button"])

Another element because it seems Facebook use different DOM id to throw another nagging popup

facebook.com##div[id^="u_0_"]:has(div a[role="button"][href^="/login/?"])
facebook.com##div[id^="u_0_"]:has(div a[role="button"][href^="/r.php?"])

@toshiya44
Copy link
Owner

toshiya44 commented Feb 17, 2017

I think using facebook.com###pagelet_growth_expanding_cta is fine too. (I've been using it)

Another element because it seems Facebook use different DOM id to throw another nagging popup

I don't think I've seen these. Post screenshots?

@kowith337
Copy link
Author

kowith337 commented Feb 18, 2017

It's sometime use _5hn6 class instead of pagelet_growth_expanding_cta
also login button was not use expanding_cta_login_button in DOM id.
image

But blocking straight without :has will also accidentally block popup when logged in (when you delete post, managing account and anything that show prompt dialog.), this why I've also added :has after...

Fix:

facebook.com##._5hn6:has(div a[role="button"][href^="/login/?"])
facebook.com##._5hn6:has(div a[role="button"][href^="/r.php?"])

@toshiya44
Copy link
Owner

Added with 1e90b64

@kowith337
Copy link
Author

kowith337 commented Jul 23, 2017

Facebook

  • ||facebook.com/async/social_good/$xmlhttprequest
    another XHR sent after liked/reacted posts (no matter is it from ppls or pages)

Full URI example is...
https://www.facebook.com/async/social_good/fundraiser/attachment_pivot/?ft_id=<Post_ID>&dpr=1

  • ||facebook.com/pubcontent/local_news_chaining$important
    ||facebook.com/pubcontent/related_share$important
    These are XHR that sent when you click external links (even just RightClick), after it was sent, it will trigger the related article to show under external link posts.

Full URI example is...
https://www.facebook.com/pubcontent/local_news_chaining/?ft_id=<Post_ID>&dpr=1
https://www.facebook.com/pubcontent/related_share/?global_share_id=<App_ID(?)>&attachment_div_id=u_fetchstream_10_1r&ft_id=<Post_ID>&dpr=1

  • ||facebook.com/video/tahoe/upnext/$important
    to prevent loading/suggest next videos.
  • ||facebook.com/video/quality_survey$important
    to prevent reporting data about video stats back to Facebook. (Such as bandwidth, quality, receiving health, ...)

Facebook AdPrefs

  • @@||facebook.com/ads/preferences/edit_sensitive_topics$xmlhttprequest
    to allow config sensitive topics (Alcohol, for example)
  • @@||facebook.com/ads/preferences/ad_report/$xmlhttprequest
    to allow report badvertisers to Facebook.

@toshiya44
Copy link
Owner

toshiya44 commented Jul 23, 2017

Thanks @kowith337 . Added e512162

@kowith337
Copy link
Author

kowith337 commented Oct 22, 2017

Have any idea to re-block the Facebook login popup again?
It seems the DOM properties will be cleared and will be rewrite the property then.

  • normally, uBlock will be add randomstring hidden and completely hide it, but now I cannot see that value and Facebook now managed to rewrite it.

Before
image

After
image

@toshiya44
Copy link
Owner

Which version of uBO are you using? I don't seem to have this issue (on latest legacy version)

@kowith337
Copy link
Author

I'm testing on chromium, first, but didn't reproduce on Firefox legacy.
Edit: maybe just my fault that misunderstood the element, it's ._5hn6, not #_5hn6

I'm trying to hide login form again if they change the element name with...
facebook.com###contentArea div:if-not(.clearfix):has(a[href*="/login/?"])

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

2 participants