userstyles.org - Link style and color protection

(No screenshot available)
Author Drugoy
Created Oct 26, 2010
Updated May 22, 2011
Installs (this week) 0
Installs (total) 232
It is needed for sites, that hide links, disguising them so they may look like a plain text, for example.
+ All the sites will have the same decoration for unvisited, hovered and visited links, so you don't need to guess if it's a link or it's not - you'll know it for sure.

This style works on Nightly (aka Firefox 6) and may not work on Firefox 5 (which is now beta) and earlier (including Firefox's current stable version) yet.
Why? Because the new -moz-text-decoration-color CSS property was added just recently. Later it might become a part of the stable/beta version of Firefox, but currently it may be not (though I didn't bother myself running tests).

How the style works?
1. It makes all links underlined.
2. It paints this line in the different colors regarding the link type (regular, visited, hovered).
To use this style, install Firefox and Stylish.
Link style and color protection
7993
39007

More Info

Why it is impossible to write a similar style for older versions of the Firefox?

Because there was a vulnerability which let site-owner gather info about sites you had visited before. And Mozilla has fixed this vulnerability but in such a way that now you can't set different text decoration to the visited and unvisited links. And only in Nightly (aka Firefox 6) we can do so.



Why didn't you use different colors for visited and unvisited links? It works in all earlier Firefox versions!

Because setting a definite color for anything - will make that be transparent if that element has the background of the same color. So in some cases the links would become unreadable until you hover or highlight them, which is not a good solution.



Then what about adding some shadow of the different color to them? That would work!

It would, but to paint a neat shadow (so the text would stay readable) - you have to apply shadow from 4 to 8 times (!!!) to the same element. And every time you do so - the browser will use some resources on drawing that shadow x times. And the pages will get paint slower. I've tried to do so - and it really adds pretty much delay.



Wow! That's a huge investigation you did! How can I help you?

Just try it on any non-Nightly version of the Firefox and tell me this style works in them.

Feedback

Discussions

No discussions posted yet. Be the first to ask a question or review this style.