From time to time, I'll come across a blog or article on the web where the person has chosen to remove the underline from their links and/or change the link color, but didn't make the color easy enough to distinguish from the body text. This seems to be especially common for links that have already been visited, because the default color for visited links is a dark purple, and most text on the web is black. I grew a little frustrated with this situation and thought it might be helpful to create a bookmarklet that highlights all the links on the page.
To use the bookmarklet, just drag the link below to your bookmarks bar.
When the highlighter is active, you'll see a "Remove Link Highlight" overlay at the top-center of the browser window. To disable link highlighting, just click the overlay text.
So far, it's been tested and working in Firefox 2/Mac/Win and Safari 3/Mac/Win.
Known issues:
- Does not work in IE - I keep getting a vague error message about an error at line x, char x and simply haven't spent the time to get it working right for lack of a decent way to debug JavaScript in IE.
- Does not highlight links in iframes.
Please leave me a comment if you find any issues not mentioned above. Be gentle - this is my first bookmarklet, so there may be other issues I'm not aware of.
Since this bookmarklet was created for personal use and currently meets my needs, I'm debating on whether to fix the above issues. However, if there is enough demand to fix them, I'll certainly consider it. Please leave a comment to let me know that you are using it.
Also, if anyone knows of a decent way to debug JavaScript in IE without purchasing Microsoft software (Office or Visual Studio), please let me know.