[Greasemonkey] Turnabout: More Greasemonkey for IE
Jeremy Dunck
jdunck at gmail.com
Wed Jun 1 00:04:58 EDT 2005
On 5/31/05, chris feldmann <cfeldmann at gmail.com> wrote:
> How about the possiblility of an XPath translation layer? Most XPath
> queries I've seen (and written) for greasemonkey are "ACTIVE QUERY,
> document, null, standard format, null." Base functionality could be
> replicated with (cringe) regular expressions on the query, am I wrong? The
> ability to plug in greasemonkey scripts without rewrite would be facilitated
> greatly if minor DOM implementation differences could be accounted for
> without having to think about entirely unsupported things in IE such as
> XPath.
>
I think most XPath queries could be translated into DOM tree walks,
except that they won't work on MSHTML, due to the cycles Aaron
mentioned earlier.
The JS XPath implementation which GreasemonkIE is very slow; I don't
have benchmarks, but maybe 100 times slower than FF's built-in XPath.
I'd be surprised if that implementation isn't using tree walks...
More information about the Greasemonkey
mailing list