Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Removed underlined links in Safari Web Browsers
I wanted to remove the underlined links from Safari and found that if you go to /Applications -> Safari.app -> Contents -> Frameworks -> WebCore.framework -> Versions -> A -> Resources -> html4.css, then you can edit the stylesheet near the bottom where the CSS Selectors are located. For instance, here's what mine looks like:
 <--
a:link { color: blue; text-decoration: none; }
a:link:active { color: black; outline: gray 1px dotted; }
a:visited { color: navy; text-decoration: none; }
a:visited:active { color: black; outline: gray 1px dotted; }
a:hover { color: red; text-decoration: underline; }
-->
Of course, you can edit it how you want to, or use your own.

[Editor's note: I haven't tested this myself, but it seems like it might be easier and/or safer to just create your own style sheet, and then set that as the default using the Appearance section of Safari's preferences. This way, you won't be changing something that's likely to get overwritten when Safari is upgraded ... after I catch up a bit this weekend, I'll try to test this theory!]
    •    
  • Currently 1.80 / 5
  You rated: 1 / 5 (5 votes cast)
 
[24,754 views]  

Removed underlined links in Safari | 10 comments | Create New Account
Click here to return to the 'Removed underlined links in Safari' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Minimal style sheet to remove link underlining
Authored by: William McCallum on Jan 10, '03 10:37:08AM

This from the Apple discussion lists: create a file nounderlining.css with the single line

a { text-decoration: none }

then choose it using the Appearance preference pane in Safari. It worked for me.



[ Reply to This | # ]
Thx!
Authored by: bluehz on Jan 10, '03 12:02:28PM

Thx! Other than no tabbed browsing - this was my main beef with Safari - I HATE UNDERLINED LINKS!



[ Reply to This | # ]
Thx!
Authored by: dfbills on Jan 10, '03 01:03:43PM

How else do you like them? plain text? I hope you don't have to roll over all of yours to see them.



[ Reply to This | # ]
don't click and hold!!
Authored by: zalix on Jan 10, '03 12:32:24PM

A rather simple way to avoid this it to click and not hold the mouse button down. The folder opens much quicker and stays open until you make a selection.



[ Reply to This | # ]
Worked!
Authored by: diffcomputers on Jan 10, '03 01:03:21PM
This worked perfectly for me.
By the way, while looking for a way to do this in the .plist file, I found something very strange.

details at Mysterious Safari:Tracking Cellular ISP in Prefs?

If you don't love your computer, you need Different Computers.

[ Reply to This | # ]
Worked!
Authored by: LouieNet on Jan 13, '03 05:46:17AM

They didn't notice the previous two lines....

<key>RecentSearchStrings</key>
<array>



[ Reply to This | # ]
Coloured links
Authored by: Miga on Jan 10, '03 01:37:17PM

If you want coloured links (not underlined) try this:

A:link {
font-weight: 900;
color: #2fb177;
text-decoration: none;
}

A:active {
color: #e31cd9;
text-decoration: none;
}

A:visited {
color: #8e9dc5;
text-decoration: none;
}



[ Reply to This | # ]
here's mine
Authored by: awk on Jan 10, '03 02:36:55PM
I like the underline to show up when the cursor goes over the link: A { text-decoration: none; } A:hover { text-decoration: underline; } Like the others have said, better to make a seperate my-style.css file someplace convenient and set the stylesheet to that. It might also be possible to block ads based on size or type (flash, gif) with stylesheets.. I know it's possible on Mozilla ..

[ Reply to This | # ]
Where can a person download some?
Authored by: mmmmark on Jan 10, '03 06:16:58PM

I'm no CSS wizard. Where can a person download some samples to start from? What you guys show here makes sense, but what sort of file is it and where does it go?

Gotta spell it all out for mr novice here. <-------

Thanx!



[ Reply to This | # ]
Multiple stylesheets
Authored by: vickishome on Jan 10, '03 10:34:12PM

You can also create multiple stylesheets for different purposes. For example, I have a stylesheet that forces a plain white background which I use when I find a website that has some excellent information, but uses a background that's hard on my eyes.

Also, if you find a board or website that uses stylesheets, you can download their stylesheet and change the styles to something you like better. So, for example, if you don't like the color combination for the background and text, you can change them to something you prefer.

Using multiple stylesheets allows you to have a different style for different needs.



[ Reply to This | # ]