Change only the color of a link (Firefox)

Solved
Walké Posted messages 56 Registration date   Status Member Last intervention   -  
Walké Posted messages 56 Registration date   Status Member Last intervention   -
Hello!

[ My question may seem like something a perfectionist would ask, but here it goes. ]

So, in Tools / Options / Content, in Firefox, under the Fonts and Colors section, you can click on Color and choose the color of unvisited links to remove that horrible blue.
However, for the result to apply on all pages (well, on the pages, because without the option I don't see the result anywhere), you have to force the formatting.
And so if I force the link color formatting, alas, I also force the background and text color, resulting in uniformly ugly and unreadable pages (try it and see).

I was wondering if it was possible to force only one color!? I've searched for the option but found nothing.
If you happen to know the trick, thanks in advance.

Otherwise, have a nice day anyway.
Configuration: Windows XP SP3 Firefox 3.0.1 with a Mac theme (just in case)

4 answers

  1. Mac Coy
     
    With a bit of delay, I'm providing the solution as I faced the same issue. I'm sharing here the answer found on an Anglo-Saxon website.

    1. Access the following folder from the path: C:\Documents and Settings\[USER]\Application Data\Mozilla\Firefox\Profiles\[code].default\chrome. Note that it is necessary to make hidden folders in Windows visible to access it.

    2. In the chrome folder, there are two CSS files: userChrome-example(.css) and userContent-example(.css). Duplicate userContent-example and rename it: userContent(.css).

    3. Open this document (preferably with a text editor like Notepad++ - free! -, it's always better than using Notepad), and add the following two lines:
    a { color: [colorid]!important; }
    a:visited { color: [colorid]!important; }

    The first is used to determine the color of the unvisited link, the second one for the color of the clicked link.
    To determine the color there are several solutions:
    - use the names of HTML colors (for example, to set an unvisited link to violet blue color, you need to enter: a { color: blueviolet!important; }
    - use the hexadecimal code of the color: allows to choose very finely your color shades. The code would then be: a { color: #8A2BE2!important; } for the same violet blue color. Don’t forget to include the hash # before the hexadecimal code.

    To choose your colors, but of course how it works! : https://www.commentcamarche.net/contents/490-codes-couleur-html
    Also check out this very good site that offers an impressive range of color shades with their hexadecimal code: http://www.henri-ruch.ch/HTML/Couleurs/nom_couleur.asp

    4. Once these two lines have been added, save the userContent file and restart Firefox. Normally these two lines force all open sites in Firefox to change the color of the links, even if that color has been defined in the site's author's CSS.

    Hope it works for you!

    Mac Coy

    (PS: original source of this solution: http://www.webmasterworld.com/forum119/456.htm )
    2
  2. Walké Posted messages 56 Registration date   Status Member Last intervention   22
     
    Yes perfect, thank you!
    By digging a little, I even found that you can apply this to specific sites by putting the rule between
    @namespace url(http://www.w3.org/1999/xhtml);
    @-moz-document domain("machin.fr") {
    my rule
    }
    And indeed, it works correctly.
    Have a good day!
    1
  3. Rosslaew
     
    open a blank page, and in the address bar type "about:config"

    Then at the top you have a search bar, you search and change the colors you want:

    browser.anchor_color : color of unvisited links
    browser.active_color : color of the link you are CURRENTLY clicking
    browser.visited_color : color of the link to a page you have already visited

    You need to enter the color in hexadecimal but that's not the hardest part ;-)
    It should work, I set the links to turquoise to test ^^

    But it only changes the default colors, we agree
    0
  4. Walké Posted messages 56 Registration date   Status Member Last intervention   22
     
    Yes, indeed, it amounts to changing the color in the options panel, except that we are not limited by the proposed palette...
    But the trouble is that it has no effect, and in the case where the obligation defines it, the thing remains awful.
    Without irony, should I conclude that there are no solutions and that I should stop looking for complicated stuff and be satisfied with the things I already have?

    Thank you again!
    0