20

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 3

23

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.

0
12

I'd like to expand on the original answer with...

||accounts.google.com/gsi/*
  1. Open uBlock addon from inside the Firefox browser
  2. Click tab 'My Filters'
  3. Move cursor to a new line (one block per line)
  4. 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.

6
||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.

1
  • Works fine, even right here on StackOverflow :-) Commented May 5 at 15:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.