Changing ONLY visited link colors

User Help for Mozilla Firefox
Post Reply
essmeier
Posts: 21
Joined: April 8th, 2016, 7:50 am

Changing ONLY visited link colors

Post by essmeier »

Running v 57.0.4.

Several years ago, I wanted to change my visited link colors to a shade of orange, specifically #ff6600.

I created the userContent.css file and added this to it:

a:visited {color:#ff6600 !important;}

Been doing that ever since, and for most sites, it works.

Sites can apparently override this, however. EBay is one site that does this, so my visited links there appear to be purple. (It's a recent change; a week ago, they were showing up as orange.)

I can force the orange links by going to Tools > Options > Colors and changing my visited link color there to orange and telling it to "Override the colors specified by the page with your selections above" and selecting "Always."

If I do this, however, it changes the colors of the visited links, the unvisited links and all of the tables on the pages, resulting in a rather odd appearance that I'd rather not have.

Is there a way to force Firefox to ALWAYS change the visited link color but not to change anything else while doing so?
Wonderful1
Posts: 83
Joined: July 21st, 2010, 10:17 am

Re: Changing ONLY visited link colors

Post by Wonderful1 »

Too bad they executed the NoSquint add-on. It handled this function beautifully.
essmeier
Posts: 21
Joined: April 8th, 2016, 7:50 am

Re: Changing ONLY visited link colors

Post by essmeier »

I tried using NoSquint Plus, but it doesn't work, as many reviewers have pointed out. Still, that seemed like a step in the right direction.
essmeier
Posts: 21
Joined: April 8th, 2016, 7:50 am

Re: Changing ONLY visited link colors

Post by essmeier »

There used to be an addon called "Visited" that did this, but it doesn't work in FF 57. There is a Greasemonkey script called "Visited Lite" that claims to work.

https://greasyfork.org/en/scripts/15173-visited-lite

I'm testing it now, though I've had issues running Greasemonkey in the past. For now, it seems to work.
User avatar
Gingerbread Man
Posts: 7735
Joined: January 30th, 2007, 10:55 am

Re: Changing ONLY visited link colors

Post by Gingerbread Man »

essmeier wrote:I created the userContent.css file and added this to it:

a:visited {color:#ff6600 !important;}
Link colors should be defined in L-V-H-A order. So define unvisited link color above that and check if it makes a difference:

Code: Select all

a:link { color: blue !important; }
a:visited { color: #ff6600 !important; }
User avatar
BuddhaNature
Posts: 537
Joined: January 3rd, 2008, 9:44 am
Location: Scotland

Re: Changing ONLY visited link colors

Post by BuddhaNature »

Gingerbread Man wrote:Link colors should be defined in L-V-H-A order.
Could you say in words what L, V, H and A are? I've got:

L = link
V = visited
H = ?
A = ?
OS: Windows 10 Pro. x64
essmeier
Posts: 21
Joined: April 8th, 2016, 7:50 am

Re: Changing ONLY visited link colors

Post by essmeier »

Link colors should be defined in L-V-H-A order. So define unvisited link color above that and check if it makes a difference:
It doesn't make a difference. Until about a week ago, it had been working just fine for about two years with just the single line of text.

The Greasemonkey script is working for now.
morat
Posts: 6427
Joined: February 3rd, 2009, 6:29 pm

Re: Changing ONLY visited link colors

Post by morat »

@BuddhaNature

When setting the style for several link states, there are some order rules:

a:hover must come after a:link and a:visited
a:active must come after a:hover

CSS Styling Links
http://www.w3schools.com/css/css_link.asp
http://www.w3schools.com/css/tryit.asp? ... background
User avatar
BuddhaNature
Posts: 537
Joined: January 3rd, 2008, 9:44 am
Location: Scotland

Re: Changing ONLY visited link colors

Post by BuddhaNature »

Okay, morat. Many thanks for the link will read through it later.

@essmeier:

I'm using FF 57 too. And Gingerbread's code is working fine for me. Including on eBay UK. Maybe something else you've got configured on your system is making the code 'apparently' fail.

P.S. I didn't alter any other relevant setting in FF Options from the default. So what is happening on my system is down to Gingerbread's code.
OS: Windows 10 Pro. x64
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: Changing ONLY visited link colors

Post by Brummelchen »

L = link
V = visited
H = hover
A = active (mouse still pressed)
User avatar
BuddhaNature
Posts: 537
Joined: January 3rd, 2008, 9:44 am
Location: Scotland

Re: Changing ONLY visited link colors

Post by BuddhaNature »

Thank you, Brummelchen.
OS: Windows 10 Pro. x64
Post Reply