laylavish / uBlockOrigin-HUGE-AI-Blocklist

A huge blocklist of sites that contain AI generated content for uBlock Origin & uBlacklist.
947 stars 69 forks source link

Amazon Order Confirmation Emails Disappear in Gmail #34

Open zweidrache opened 1 month ago

zweidrache commented 1 month ago

As stated in the title, ever since installing this blocklist many Amazon emails - especially order confirmation or delivery notices, etc - all load as blank white emails in Gmail. This happens both in the regular desktop view, fullscreen, and when attempting to print the email as a PDF for record-keeping. I have to disable Ublock entirely to get it back.

I opened up the uBlock Origin logger and believe it to be the result of the following line in the list but I'm not savvy enough with the extension to be able to verify 100%.

google.com,duckduckgo.com,bing.com##a[href*="play.ht"]:upward(div):style(opacity:0.00!important;)

I've attached a screenshot which has embedded the exact line from the logger that stood out; I didn't see any other lines highlighted by uBlock that seemed relevant. Interesting enough is that even with uBlock disabled and when I'm able to read the emails normally with all text present, that "play.ht" domain that is in the rule doesn't show up in the inspect window or page source (not any way I can locate it, anyway).

image

For a potential solution, rather than just removing the specific domain, would it be possible to exclude the rules from triggering inside the Gmail site altogether? Perhaps add some kind of visible flag or warning about the email potentially containing references or external sources that are caught by this blocklist, rather than outright just wiping the whole email from existence without any indication of why this was happening. Until I was reminded today that I even had this blocklist installed, and toggled my extensions, I thought google or amazon was messed up somehow and didn't think it was something specific to my browser.

laylavish commented 1 month ago

Okay, so I think I know why this is happening. It's a combination of the top level domain google.com & play.ht. play.ht is hitting things like play.htm/play.html which is causing this issue. Since Gmail (mail.google.com) uses top level domain google.com, it causes the blocklist to be active.

So there are three solutions:

  1. You can just hit uBlock Origin's power button while on Gmail and it will disable the blacklist ONLY on mail.google.com, restoring your results. While this is an okay solution, it is a bit cumbersome and isn't the "set it and forget it" experience that I'm after for.

  2. You can add mail.google.com#@#a[href*="play.ht"]:upward(div):style(opacity:0.00!important;) to your filters list. This would restore your results.

  3. Add two entries in the list for play.ht. One preceding with a period and one with a forward slash. Did some testing and it seems to work fine. I'll probably go with this one, and just in case add mail.google.com as an exception.

Sorry for the confusion! Will fix up shortly!

Okay, it's fixed! Update, and it should be resolved now.

zweidrache commented 1 month ago

Okay, so I think I know why this is happening. It's a combination of the top level domain google.com & play.ht. play.ht is hitting things like play.htm/play.html which is causing this issue. Since Gmail (mail.google.com) uses top level domain google.com, it causes the blocklist to be active.

Hilariously, the email I got as the reply to this issue had the same thing happen, so it's not even parsing just URLs for hyperlinks and images but plaintext references. And I checked the other email and found out it's probably matching "display.html" which is in one of the standard URLs on those emails LOL

However I did just update and that did the trick, and I can now see the affected emails. Thanks!

You can just hit uBlock Origin's power button while on Gmail and it will disable the blacklist ONLY on mail.google.com, restoring your results. While this is an okay solution, it is a bit cumbersome and isn't the "set it and forget it" experience that I'm after for.

I won't do this, because I rely on uBlock intercepting when I click on links or images inside of my emails that may be used to track those clicks, which is a higher priority for me than the much much MUCH smaller chance of me getting an email that somehow has ties to a site that may or may not use AI images in some fashion. (And leads to false positives like this one.)

To that point, again, I don't think I would require protection inside Gmail in the way this blocklist offers, and if it can't be integrated into the list itself to exclude mail.google.com for all rules, is there some other way to keep the entire list from triggering only when I'm using Gmail? (Without disabling uBlock entirely for that site.)