Problem: Google can track me via websites using Google authentication integration on their webpages. Additionally, this popup interrupts my user experience for signing in without Google. How do I effectively get rid of these?
3 Answers
Action: Create a uBlock Origin rule to block these iframes.
Solution: Add the following to my uBlock Origin filters:
||accounts.google.com/gsi/iframe
Result: I no longer receive "Sign in with Google" iframe modals/popups.
I'd like to expand on the original answer with...
||accounts.google.com/gsi/*
- Open uBlock addon from inside the Firefox browser
- Click tab 'My Filters'
- Move cursor to a new line (one block per line)
- Paste above filter on the new line
Following uBlock's Static network filtering example.
"For all static network filters, ensure that they have as many primary narrowing options as possible, i.e. that they are well targeted. Pure hostname-based filters (such as ||example.com^) are most optimized memory- and cpu-wise." - uBlock Origin Documentation
It was found the previous answer was allowing URL requests from the '/gsi/' subdomain before the '/iframe/' subdomain was blocked. With the revised answer, URL requests (to block) are reduced to one.
||accounts.google.com/gsi/iframe
##iframe[src^="http://accounts.google.com/gsi/iframe"]
##iframe[src^="https://accounts.google.com/gsi/iframe"]
##iframe[src^="//accounts.google.com/gsi/iframe"]
Will block the iframe and hide it (so that the buttons under it can be clicked) without preventing manual Google sign-in.