MozillaZine

Changing ONLY visited link colors

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

Post Posted January 21st, 2018, 4:20 pm

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: 67
Joined: July 21st, 2010, 10:17 am

Post Posted January 21st, 2018, 4:26 pm

Too bad they executed the NoSquint add-on. It handled this function beautifully.

essmeier
 
Posts: 13
Joined: April 8th, 2016, 7:50 am

Post Posted January 21st, 2018, 4:55 pm

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: 13
Joined: April 8th, 2016, 7:50 am

Post Posted January 21st, 2018, 5:07 pm

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.

Gingerbread Man

User avatar
 
Posts: 7736
Joined: January 30th, 2007, 10:55 am

Post Posted January 22nd, 2018, 1:00 am

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; }

BuddhaNature

User avatar
 
Posts: 204
Joined: January 3rd, 2008, 9:44 am
Location: Scotland

Post Posted January 22nd, 2018, 5:05 am

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 = ?

essmeier
 
Posts: 13
Joined: April 8th, 2016, 7:50 am

Post Posted January 22nd, 2018, 7:12 am

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: 2713
Joined: February 3rd, 2009, 6:29 pm

Post Posted January 22nd, 2018, 7:21 am

@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

BuddhaNature

User avatar
 
Posts: 204
Joined: January 3rd, 2008, 9:44 am
Location: Scotland

Post Posted January 22nd, 2018, 7:30 am

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.

Brummelchen
 
Posts: 3515
Joined: March 19th, 2005, 10:51 am

Post Posted January 22nd, 2018, 7:31 am

L = link
V = visited
H = hover
A = active (mouse still pressed)

BuddhaNature

User avatar
 
Posts: 204
Joined: January 3rd, 2008, 9:44 am
Location: Scotland

Post Posted January 22nd, 2018, 7:34 am

Thank you, Brummelchen.

Return to Firefox Support


Who is online

Users browsing this forum: No registered users and 9 guests