changing highlight color

Quicksaver quicksaver at
Fri Jul 17 09:54:36 UTC 2015

On 17-07-2015 10:38, Cameron McCormack wrote:
> Pawel Por:
>> When I highlight a block of text using mouse it usually makes a
>> background color to become dark blue and a text color to become white.
>> It happens in most cases when a web page has got originally a white
>> background color.
>> How can I customize a background color when highlighting a text with
>> mouse. E.g. I would like it to be yellow.
> I don’t think there is a pref for setting the highlight background and
> foreground colour

Actually there is

You're looking for ui.textSelectBackground and ui.textSelectForeground, 
they use color hex values, so #FFFF00 for yellow and #000000 for black. 
No need to modify any source, just tweak those colors as you like.

Luís Miguel

More information about the firefox-dev mailing list