Tag Archives: Greasemonkey

Easily highlight nofollow links in Firefox

If you are a blogger (or if you read blogs at least), you most likely know what nofollow is (if not, read this article from Wikipedia).

Also, if you are a blogger you’re most likely interested to get as many links as you can, but avoid nofollow links (why? because they simply don’t count for search engines – yes, I know this is different for various search engines, but big G doesn’t care about them).

Comment with nofollow links highlighted

What you need in this case, is this little script to highlight links (it colors them in pink, but can be easily modified if you know a bit of CSS).

What you need in order to use this script is Firefox with Greasemonkey extension – both very easy to install.

After this, just install this little script: nofollowhighlight.user.js (1KB)

If you want to highlight the links in a different color (or add another styling, go to Greasemonkey options (right click on the monkey head from the taskbar), select Manage user scripts, there select Nofollow highlight and click on the Edit button.

This will edit the file in your text editor. What you need to change there is this line:

theStyle += "background-color: pink";

You can change for example this into theStyle += "text-decoration:line-through;"; – this will make the nofollow links have a strike through. It simply depends on what you like best.

The script is based on Gareth Simpson’s first version.