General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
colorise js text links
Posted by: disrupted
Date: September 09, 2009 10:28PM

add this code to custom css (edit>configuration>user custom css)

a[href^="javascript:"] { color: #DC45AE !important }

this displays all js links in pinks, you can change the colour by changing hex value. especially useful when using openalllinks macro so you know which links will not be parsed



Options: ReplyQuote
Re: colorise js text links
Posted by: JohnHell
Date: September 09, 2009 10:39PM

O_o

I thought you were going to suggest other thing...

Anyway, that rule isn't helpful for links such as:
a href="#" on[anyevent]="function();"

So, I never did, but maybe you should add:

a[href^="javascript:"],a[on[theeventyouwant]*="("]{ color: #DC45AE !important }

As I say, I never intended to do such rule, so I don't know if the on[theeventyouwant] property is selectable by CSS. Probably not.

Options: ReplyQuote
Re: colorise js text links
Posted by: JohnHell
Date: September 09, 2009 10:49PM

Ok, events properties are selectable, so you need to add all possible events as explained above:

onclick
onmouseover
onmouseout
onchange
on...
.
.
.

Options: ReplyQuote
Re: colorise js text links
Posted by: disrupted
Date: September 10, 2009 06:53PM

those are very good tips, thanks john

Options: ReplyQuote


K-Meleon forum is powered by Phorum.