Closed unforgettableid closed 9 months ago
With a default setup
Please set uBO to block all remote fonts by default. Otherwise, you cannot reproduce this breakage.
If blocking remote fonts breaks the site, then don't block remote fonts on that site? This is an opt-in per-site switch, it's up to you to use it and not use it if it breaks a site.
I wonder if you could please add a rule to unbreak.txt. This new rule would always allow sufficient remote fonts so that all book samples are viewable.
You can't bypass rules with filters, all rules have precedence over filters, and rules are to be used at your own discretion, by default none of them interfere with filters.
Thank you for replying!
If blocking remote fonts breaks the site, then don't block remote fonts on that site? This is an opt-in per-site switch, it's up to you to use it and not use it if it breaks a site.
I've been using uBO for years. On many sites, blocking web fonts hides symbols, making site functionality harder to use. But this is the first time I've seen that blocking web fonts actually makes site functionality fail completely:
I had never dreamed that ticking the box to block web fonts by default would cause such breakage. It's easy for users to untick the box. However, it may be tricky for them to figure out that unticking the box is necessary.
Amazon is the 12th most popular website on the Internet. (Source.) So, this issue probably affects a fair number of users.
A.) If filters can't override rules, maybe the checkbox should not create the rule no-remote-fonts: * true
. Instead, maybe the checkbox should create the filter *$font
. That way, a new filter in unbreak.txt could then override the filter *$font
, on Amazon's website only.
B.) Also, maybe the "block web fonts by default" checkbox on the settings page should be renamed. Perhaps it could be renamed to the following eight-word string: Block remote fonts (this may break some sites)
.
Dear @gorhill:
I know that I can create an exception rule so that Amazon can load web fonts no matter what. Perhaps my main concern is for other users, who might not realize why Amazon book previews aren't loading.
I've proposed two possible solutions, above.
Prerequisites
Category
breakage
Description
Steps to reproduce
https://www.amazon.ca/Gut-Inside-Story-Underrated-Revised/dp/1771643765?asin=B0795B7M79&revisionId=78b45cab&format=1&depth=1
Observed
Expected
I was hoping to view the book sample.
Notes
I've confirmed that this issue exists on amazon.com and amazon.ca. I'm not sure about Amazon's other websites.
I wonder if you could please add a rule to unbreak.txt. This new rule would always allow sufficient remote fonts so that all book samples are viewable.
Other extensions used
Blocksi Web Filter and Plucky Filter.
(Please forgive me for not having disabled them. For various reasons, I've left them both enabled. However, I'm pretty sure that I've narrowed the issue down enough to show that the breakage is caused solely by uBO.)
Configuration
Conclusion
Thank you!