hoverzoom
hoverzoom copied to clipboard
Add ability to blacklist urls via regex
Is your feature request related to a problem? Please describe. There are certain images that I never want to hover zoom, background patterns for example, it's frustrating when hovering over an email and the background keeps popping up as a zoom, however with the image coming via email in gmail it gets run through a proxy, so we can't do a full url match it would need to be on just the filename or similar
Describe the solution you'd like
The ability to blacklist via patterns instead of just sites e.g. sentry-background.png$
for a url ending in that string
Describe alternatives you've considered None available
Additional context
Hi @hailwood
I'm planning to add this feature to HZ+, but not through a blacklist. Blacklisting every image you don't want to be zoomed would be too tedious IMO. So i'll add a new Action Key (probably "B" for "Blacklist", or "I" for "Ignore"). If you press this key while an image is zoomed then this image will be blacklisted (no confirmation asked). Blacklisted images'urls will be stored in browser's local storage, so you don't have to repeat this operation each time you reopen a tab. If you blacklist images by mistake then you'll have to clean session storage to whitelist them. Maybe later on i'll add a form to display blacklisted urls and the ability to whitelist selected ones.