Link colors

User Help for Mozilla Firefox
Post Reply
Odin2
Posts: 801
Joined: March 10th, 2012, 8:08 pm

Link colors

Post by Odin2 »

I have my link colors set [Tools|Settings] to blue for unvisited and green for visited, Yet some links are colored red. Why?
lenny2
Posts: 68
Joined: June 8th, 2022, 3:10 am

Re: Link colors

Post by lenny2 »

Odin2 wrote:I have my link colors set [Tools|Settings] to blue for unvisited and green for visited, Yet some links are colored red. Why?
It seems this option in Firefox always didn't work correctly. Try this style

Code: Select all

/* userContent.css Firefox */
/* Highlighting visited and unvisited links */
:any-link:visited,
:any-link:not(#thumbnail).yt-simple-endpoint:visited * {
    color: #00b294 !important; /* #00b294 - green; #ff4a4a - pale red; #ff00ae - magenta; */
}
/* Underlining links under the cursor */
:any-link:hover,
:any-link:not(#thumbnail).yt-simple-endpoint:hover * {
    text-decoration: underline !important;
}
Remember to set the toolkit.legacyUserProfileCustomizations.stylesheets = true (in about:config)
Or you can use this extension https://addons.mozilla.org/en-US/firefo ... k-enabler/
Odin2
Posts: 801
Joined: March 10th, 2012, 8:08 pm

Re: Link colors

Post by Odin2 »

Thanks, lenny2. Actually, I'd forgotten that I do have the Visited Link Enabler add-on active--but I don't know how that changes link colors that I would otherwise see. Your answer in any case does not really address my question, which is why some links appear red.
morat
Posts: 6425
Joined: February 3rd, 2009, 6:29 pm

Re: Link colors

Post by morat »

Maybe a CSP problem.

Content Security Policy (CSP)
http://en.wikipedia.org/wiki/Content_Security_Policy

Maybe the site has its own link styles using the !important property.

There is a test page in the following thread.

browser.visited_color usage in about:config
http://forums.mozillazine.org/viewtopic ... &t=3083887

Preferences in colors dialog:

text - browser.display.foreground_color
background - browser.display.background_color
unvisited links - browser.anchor_color
visited links - browser.visited_color
use system colors - browser.display.use_system_colors
underline links - browser.underline_anchors
override the colors - browser.display.document_color_use
Post Reply