Howto: Force change the color of visited links in Firefox

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Software RSS
Next:  Strange Printer actions  
Author Message

Joined: Aug 31, 2004
Posts: 5764

Location: Sydney, Australia

PostPosted: Fri Dec 08, 2006 2:11 am    Post subject: Howto: Force change the color of visited links in Firefox

This will also work in other Mozilla-based browsers such as Mozilla Suite, SeaMonkey & Flock. It's a simple fix for those sites which won't change the link color after it is clicked on. As well as changing these visited links to purple, you can also set them to become italic. This method will not affect the color of unvisited links.

Change the colour of visited links in Firefox & Mozilla
Do you find there are certain sites you visit with Firefox/Mozilla/SeaMonkey where the links won't change colour after you visit them? It can be a real nuisance, especially on sites where there are lots of links that you may visit over several browsing sessions. Although Firefox does have an option to set your own link colours, it can be irritating as it also changes the colours of unvisited links (this can be a problem on sites which have set the background colour to be the same colour you chose for unvisited links), and still doesn't work on every site.

Well, it's very easy to set your browser up to change the colour of visited links only. All you have to do is add one line to a certain file in your profile. (continued)

Here's a screenshot (click to view full size) showing what visited links will look like if you choose to change them to italic as well as purple:

Error: image could not be loaded. Image is not available from server

Image URL:

Last edited by seaeagle on Tue Apr 10, 2007 6:53 pm; edited 1 time in total
Back to top

Joined: Feb 20, 2003
Posts: 6325

PostPosted: Fri Dec 08, 2006 4:50 am    Post subject:

I struggled with this for months trying to find an answer. The FF options settings stopped working around, I think. But this worked for me to get the visited links in red.

Copy this to you userContent.css or create the file first if you have to. It should be in your profile, chrome folder.

/* Change Visited Links to Red */
a:visited {
color: #ff0000 !important;

My visited links now stay red. I can keep the website design with it. And the online updates from to didn't break it.

If you want to use purple, I guess you could change "Red" to "Purple" by finding the color number in Thunderbird if you're using it. I think that's where I found a number for red a long time ago.

Also look at your options tabs for:


Uncheck: Allow pages to choose thier own fonts, instead of my selections above

Link Colours:

Unvisited Links: Blue (or your choice)
Visited Links: Red (did it here; but now it doesn't work until the userContent file is in place.)

Check Underline links (or not...your preference)
Check Allow pages to choose their own colours, instead of my selections above. (This keeps all the graphics etc in the page instead of whiting out to just a page with text on it.)

These settings alone in FF Options used to work in early versions of FF without changing the user.Content.css. But a long time ago they stopped working by themselves.

I haven't updated to FF 2 yet so I don't know if that will break it. So I'll keep your hint on file in case it does. Also, in my searching for an answer to this, the number of days you keep for your history might also be a factor. For example, I keep 4 days of history. I've noticed when going back several pages in a forum (PG is one of them), threads I know I've been to are now back to the original blue color.
Back to top

Joined: Aug 31, 2004
Posts: 5764

Location: Sydney, Australia

PostPosted: Fri Dec 08, 2006 5:10 am    Post subject:

I think we're pretty much on the same course. The reason I use the method I posted (changing the userContent.css file) instead of using the Firefox options tab is that I did not want the colour of unvisited links to change to my choice, only the visited ones. With the options tab it's all or nothing. That's because I do a lot of web surfing, and I found that, no matter what colour I chose for unvisited links, I would come across a site which used that colour for it's background, thus making the unvisited links "invisible". So I wanted to retain the original colours for unvisited links & just change the visited ones.

Even changing the visited link colours to my own choice (purple) didn't work on all sites, so I also chose to make visited links italic. The sites where the visited links still won't change colour do change the font to italic.

You are correct - Firefox recognises visited links from the history file.
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Software
Page 1 of 1

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum