zbarnz / Google_AI_Overviews_Blocker

Removes annoying (and often incorrect) Google AI Overview results.
28 stars 3 forks source link

add uk Top-Level-Domain #3

Closed dario-piotrowicz closed 3 months ago

dario-piotrowicz commented 3 months ago

this PR adds the .co.uk TLD so that the extension can also work on google.co.uk :slightly_smiling_face:

[!Note] From the google docs it seems like they don't support TLD matching so I think all possible TLD sites need to be enumerated :confused:

dario-piotrowicz commented 3 months ago

Awesome, explains why its not working for some users. I will add the rest of googles supported domains

Yeah, I've added .co.uk since I am based in the UK I think it'd be ideal to all all english based google TLDs

You can also add all google possible TLDs but if you do that I'd imagine you should also update/internationalize the matching logic, it should be very straightforward implementation-wise, but I have no idea how to find all the possible combinations :sweat: (language <-> ai overview heading text) also I have no idea to which regions google released this great feature (for example the UK just recently got it whilst it's been available in the US for some moths now as far as I understand)

if you'll have any idea on how to solve the above please let me know, in case you find something I'd be happy to help :smiley:

zbarnz commented 3 months ago

@dario-piotrowicz I added all of Google's supported domains. I ran through a couple and it seems to be working for them. It might be a bit of an effort to figure out what languages / region combinations it is activated for. Ive change my language on google.com to other languages and the overviews dont seem to appear so its possible it's english only at the moment.

dario-piotrowicz commented 3 months ago

@zbarnz yeah I did the same! :grin:

I wouldn't be too surprised if it was only available in english regions for now...

anyways I think that adding all the supported domains it fine and won't hurt (at worst the extension just won't work there)