How to change the color of visited links on safari

Written by brendan o'brien
  • Share
  • Tweet
  • Share
  • Email

Safari is a browser made by Apple for Mac computers. Users can set the browser to refer to their own style sheet that sits on their computer's hard drive. This is a nice feature if you want to change elements of Web browsing, such as the colour of visited links. You may want to do this if you are on a page that you want to keep track of the links that you clicked and the default colour is the same as unclicked links.

Skill level:


  1. 1

    Launch the Text Editor application on your Mac, and click "Format" in the main menu. Choose "Make Plain Text" if available.

  2. 2

    Type "a:visited { colour: (colour) !important; }" in a new text file with (colour) being the colour that you want visited links to be. Replace "(colour)" with the code of the corresponding desired colour. For example, if you want visited links to be green, type "a:visited { colour: #00FF00 !important; }" in the text file.

  3. 3

    Click "File" in the main menu bar, and then click "Save As." Name the file "CustomLinkColor.css" and save it to your desktop. Click the "Use .Css" button in the dialogue box.

  4. 4

    Launch Safari. Click "File" in the main menu bar and choose "Preferences." Click the "Advanced" tab. Click the "Style Sheet" drop-down menu and select "Other." Navigate to the "CustomLinkColor.css" file you saved in Step 3. Highlight it and click "Choose."

  5. 5

    Restart your browser. The colour of visited links will change to the colour that you designated.

Tips and warnings

  • Remember that changing the colour of visited links will work only on websites that are not referring to overriding style sheets.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.