Change Safari cursor shape based on link target

Jun 21, '07 07:30:00AM

Contributed by: carla216

As people adjust to Safari 3, I wanted to share a little addition that's helped me work more quickly: a cursor change depending upon a link's target. If the link will open as is in a new tab, the cursor doesn't change. If it will open in a new window, however, the cursor will change to a crosshair.

Open ~/Library » Application Support » Safari » userContent.css and add the following, then save:

/* Change cursor for links that open in new window */
:link[target="_blank"],
:visited[target="_blank"],
:link[target="_new"],
:visited[target="_new"] {
cursor: crosshair; }
[robg adds: This works for Safari 2 as well -- just create a file named mystyle.css (or whatever you like, ending in .css) somewhere on your hard drive, then visit the Advanced tab in Safari's Preferences, click the Style Sheet pop-up menu, and point it to the .css file you just created. It should also work for any other browser that supports the cursor property and custom style sheets.]

Comments (30)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20070621044441642