uBlockOrigin / uAssets

Resources for uBlock Origin, uMatrix: static filter lists, ready-to-use rulesets, etc.
GNU General Public License v3.0
4.2k stars 776 forks source link

Blocking "Sign in to (website) with Google" popups #23979

Closed fabriziobagala closed 5 months ago

fabriziobagala commented 5 months ago

Prerequisites

URL(s) where the issue occurs.

https://stackoverflow.com/
https://medium.com/
https://www.reddit.com/

Description

When I open one of the websites listed in the URL list, I see the annoying Google login popup. Is it better to include a filter or option to disable this popup?

I added this custom filter and it seems to work: ||accounts.google.com/gsi/iframe

Other extensions used

None

Screenshot(s)

Screenshot(s) StackOverflow ![stackoverflow](https://github.com/uBlockOrigin/uAssets/assets/62190484/5c188eb3-0b9c-473d-a8c9-bb4058ef00a3) Medium ![medium](https://github.com/uBlockOrigin/uAssets/assets/62190484/14f5931b-8571-41cd-b73f-9537be308b1f) Reddit ![reddit](https://github.com/uBlockOrigin/uAssets/assets/62190484/03f9c470-11fb-48cc-a2f7-1b09e6993db5)

Configuration

```yaml uBlock Origin: 1.58.0 Firefox: 126 filterset (summary): network: 140676 cosmetic: 53038 scriptlet: 19594 html: 1833 listset (total-discarded, last-updated): default: user-filters: 1-0, never ublock-filters: 38410-114, 1h.46m Δ ublock-badware: 9155-1, 1h.46m Δ ublock-privacy: 921-0, 1h.46m Δ ublock-unbreak: 2384-2, 1h.46m Δ ublock-quick-fixes: 87-3, 1h.46m Δ easylist: 86579-171, 1h.46m Δ easyprivacy: 51011-65, 1h.46m Δ urlhaus-1: 16140-0, 12h.28m plowe-0: 3727-1160, 6d.23h.50m ITA-0: 8431-36, 12h.27m filterset (user): [array of 1 redacted] trustedset: added: [array of 2 redacted] userSettings: [none] hiddenSettings: [none] supportStats: allReadyAfter: 110 ms (selfie) maxAssetCacheWait: 37 ms cacheBackend: indexedDB ```
krystian3w commented 5 months ago

Theoretically, AdGuard – Pop-ups should be able to handle:

https://github.com/AdguardTeam/AdguardFilters/blob/58877281b5218783f17733c45eba56b4cd57f20e/AnnoyancesFilter/Popups/sections/popups_specific.txt#L10-L15

Pages without $ghide:

https://github.com/AdguardTeam/AdguardFilters/blob/58877281b5218783f17733c45eba56b4cd57f20e/AnnoyancesFilter/Popups/sections/popups_general.txt#L21-L27

For Firefox 128+ maybe (CSS 4):

###credential_picker_container:has(iframe[src*="accounts.google.com"])

https://github.com/uBlockOrigin/uAssets/discussions/23165 (https://github.com/uBlockOrigin/uAssets/issues/23162#event-12347169314)


If page has been enabled $ghide then possible use these trick https://github.com/uBlockOrigin/uAssets/discussions/22689#discussioncomment-8604653

mapx- commented 5 months ago

@fabriziobagala enable AdGuard – Popup Overlays

report at https://github.com/AdguardTeam/AdguardFilters/issues asking to add to the filter

||accounts.google.com/gsi/client^$third-party,script,domain=dtf.ru|stackoverflow.com|vc.ru|pikabu.ru|nytimes.com|baltimoresun.com|rozetka.com.ua|estadao.com.br|medium.com

reddit.com too

fabriziobagala commented 5 months ago

@fabriziobagala enable AdGuard – Popup Overlays

report at https://github.com/AdguardTeam/AdguardFilters/issues asking to add to the filter

||accounts.google.com/gsi/client^$third-party,script,domain=dtf.ru|stackoverflow.com|vc.ru|pikabu.ru|nytimes.com|baltimoresun.com|rozetka.com.ua|estadao.com.br|medium.com

reddit.com too

@mapx- I noticed that just enable the AdGuard - Annoyances filter and the problem is solved.

krystian3w commented 5 months ago

asking to add to the filter reddit.com too

You reproduced big pop-up in Chromium to add network filtering?

Generic cosmetic filter should works unitl someone use @@$ghide.

bughit commented 4 months ago

(AdGuard|EasyList) - Annoyances have been blocking these, but I just ran into to it on reddit (firefox 128)

Can this be addressed in a ublock list, generically?

bughit commented 3 months ago

@mapx- None of the existing lists are blocking these. Please reopen.

D4niloMR commented 3 months ago

You can open an issue in their repositories.

bughit commented 3 months ago

And why must this be handled in a third party list and not "uBlock filters – Annoyances"?

stephenhawk8054 commented 3 months ago

https://github.com/uBlockOrigin/uAssets#uassets

The rationale for including a specific filter in uBO's filter lists is the same as the EasyList/EasyPrivacy policies and also takes into account whether a filter requires uBO's extended filter syntax.

It is preferred to fix filter issues in EasyList. Any filters included in uBO's filter lists must use the extended syntax.

bughit commented 2 months ago

It is preferred to fix filter issues in EasyList

I opened an easylist issue (easylist/easylist#19808). They are pretending its already blocked when it clearly isn't (repro steps).

stephenhawk8054 commented 2 months ago

I can reproduce. It's caused by @@||reddit.com^$generichide. It's temporarily addressed in uBlock filters – Annoyances list now.

stephenhawk8054 commented 2 months ago

Fixed in EL https://github.com/easylist/easylist/commit/47fea2b7983e6536ab6bdafbb8a2dbcf36f514ba

bughit commented 2 months ago

Both in this issue and and my easylist one, reddit is only an example. There are many sites that support google sign in and are affected by this. It doesn't make sense to address them individually, this should be blocked generically.

stephenhawk8054 commented 2 months ago

The generic filters are already in EL annoyance list:

https://github.com/easylist/easylist/blob/6b0a7ed80d6c92cd4a41d6b01fd11120685ca513/fanboy-addon/fanboy_annoyance_general_hide.txt#L121-L123

Only some sites need the filter $generichide due to webcompat / anti-adblock / breakages and therefore the generic filters cannot apply (including reddit):

https://github.com/easylist/easylist/blob/6b0a7ed80d6c92cd4a41d6b01fd11120685ca513/easylist/easylist_allowlist.txt#L295

Users need to report those sites. All other sites that don't have $generichide don't need to be addressed individually.