[Greasemonkey] Email linkify
julien.couvreur at gmail.com
Thu Apr 21 14:17:45 EDT 2005
Did you make any progress?
I can't look into it too much right now, but here's some pointers.
var xpath = "//text()[(parent::" + allowedParents.join(" or parent::")
+ ") and " +
"contains(translate(., 'HTTP', 'http'), 'http')]";
It seems that using "contains('@')" instead of the one above would get
you the text nodes that have the @ symbol and whose parents are in the
allowed list (so that text inside a link is never returned).
Then you can use some regex to find the email addresses and replace
them with links.
More information about the Greasemonkey