My Firefox bookmarklet to see links I've visited more reliably
I want to make links that I've already visited be clearly visible
in Firefox, so that I can avoid re-reading
links that I've already read. My first solution to this was to
use the Firefox Stylus addon to write a brute force rule for
frequently visited sites, which forced
a:visited colour to the special 'VisitedText' colour that
Firefox provides. Later, when I wrote about bookmarklets versus
addons, it occurred to me that a bookmarklet
was a great use for this in general; I don't always need it and
don't necessarily want it, but a bookmarklet would let me try to
fix sites with a click and then said I didn't know enough to write
it. In a comment on that entry, seth shared a bookmarklet to do a
large scale restyling. I took that and turned it into a simpler
version that duplicated my Stylus effort.
My current '
v' bookmarklet (it has a short name to take up as
little space as possible in my tab bar) is:
Well, it is that with some indentation stripped out and run through
the Vim operation '
:%s/\(\n\| \)\+/%20/g', from seth's comment.
I was going to say that you could do a version of seth's full bookmarklet with using Firefox's system colours to get your browser's default colours, but it turns out that this isn't quite as simple as it looks because the normal web page foreground and background colours don't seem to be available unless you go for Firefox specific CSS colour names. I think you would want something like this:
Right now I don't feel like I want to go this far often enough to have this bookmarklet in my tab bar. Partly this is because websites that have terrible colours often have other design and layout flaws, so I'm most likely going to reach for 'View in no style' or Firefox's Reader mode. Well, after I try one brute force solution. But fortunately, completely terrible colours are uncommon, perhaps because they're so obvious, far more so than other sorts of unreadable design (like tiny fonts).