waldyrious / downstyler

A stylesheet and bookmarklet that trims webpage styles down to near-bare HTML.
http://waldyrious.net/downstyler
ISC License
29 stars 5 forks source link

Customize selection color #70

Closed waldyrious closed 2 years ago

waldyrious commented 2 years ago

This has been bothering me in Ubuntu, which ships a version of Firefox that uses orange for highlighting selections.

But even the usual intense blue that's used by most browsers by default (with text in white, creating a "inverted colors" effect) is not a good default, since it doesn't play well with link colors, which firstly become the same color as the text (white) and secondly, get styled in an awkward way due to the underline color not being styleable differently within the selection:

Firefox @ Ubuntu Chromium-based browser (Brave) Styling introduced in this PR
Screenshot from 2021-11-22 20-45-35 Screenshot from 2021-11-22 20-45-47 Screenshot from 2021-11-22 21-19-29