Set custom cursors for links

By Percy Cabello

JavaScript link cursorWouldn’t it be nice if you could know if clicking on a link will open a new window or if it will trigger a JavaScript function instead of just taking you to a different web page?

New window link cursorWell, it’s possible. Just add this code to the end of userContent.css, one of Firefox configuration files that you can find in the chrome subfolder of your profile folder to get different cursors depending on the type of link you are hovering.

Restart Firefox and now you will know a little more about those links.

Edit: As suggested in the comments. Link Alert, reviewed before, provides the same functionality plus details of the linked document type (PDF, Word, Excel, etc.) based on the file extension.

Posted on May 1, 2007 - 12:16 am || More on Firefox, Tips

Comments

Brian Yi

May 1, 2007 12:16 am

Stylish is more user-friendly than userContent.css.

Reply

NicholasK

May 1, 2007 12:16 am

Wouldn’t it be easier/better to install the great Link Alert add-on that does the same job and supports more link targets (like Secure Sites, Email Links, JavaScript, Word and Excel docs, PDF Files, Zip Files, Applications, Text Files, Images, RSS Feeds, etc)?

Reply

David Naylor

May 1, 2007 12:16 am

There is a great extension that does this too. Link alert:

https://addons.mozilla.org/en-US/firefox/addon/3199

There is also Target Alert, which appends icons at the end of links:

https://addons.mozilla.org/en-US/firefox/addon/230

Reply

Bob

May 1, 2007 12:16 am

I like this. I’ll likely only use the JavaScript one though since I usually press CTRL+click to force my links into a new window. But very neat.

Reply

Percy Cabello

May 1, 2007 12:16 am

Brian, Nicholas and David, thanks for the suggestions. In fact in the past I reviewed Link Alert (http://mozillalinks.org/wp/2007/01/better-informed-clicks-with-link-alert/). Personally I prefer these kind of tweaks rather than extensions, but are worth mentioning in the article so I’ll update it. Didn’t know about Target Alert but it seems to be no longer maintained in Mozilla Add-ons. Do you know of a more updated version?

Reply

pligg.com

May 1, 2007 12:16 am

Set custom cursors for links : Mozilla Links

Wouldn’t it be nice if you could know if clicking on a link will open a new window or if it will trigger a JavaScript function instead of just taking you to a different web page? Well, it’s possible.

Bob

May 1, 2007 12:16 am

In follow-up to what I said before “I like this”, I too prefer to do this as a tweak rather than as an extension. I only wish that I could figure out how to modify the images in the tweak so that I could make my own images. With the extension, it is very easy to change an image or add new ones.

Reply

Percy Cabello

May 1, 2007 12:16 am

Bob, for creating cursors it doesn’t make a difference whether you use a tweak or a extension. I used ArtCursors to make the ones in the post (http://www.aha-soft.com/artcursors/). Then encoded them using this tool: http://software.hixie.ch/utilities/cgi/data/data Just make sure to check the Base64 checkbox.
Also, I read it doesn’t have to be a .cur file but haven’t tried it.

Reply

Bob

May 2, 2007 12:16 am

Thanks Percy! :-)

Reply

Leave Comment