Different Cursors depending on link type

Posted on December 17th, 2007

Links can open in a new page or new tab and it is never clear where they are actually opening until you click on them. I don’t like to open links in a new window because new Firefox windows consume more RAM than Firefox tabs. If I know that a link will open in a new window I tend to copy the link location instead, open a new blank tab and paste that link into the tabs address bar.

But, there is one way to make Firefox display if the link is opening in a new window or tab. It’s just three lines of CSS code that have to be added to the userContent.css file in the Firefox profile. The best way to find this file is to use the search function of your operating system.

Close Firefox, add the following lines of code to the end of the file and restart the browser afterwards to see if the changes have been successful. Links that open in a new window should be displayed with a crosshair cursor instead of the normal cursor.

:link[target="_blank"], :visited[target="_blank"],
:link[target="_new"], :visited[target="_new"] {
cursor: crosshair;
}

Posted under: Firefox, Tips

Leave a reply...