[Greasemonkey] Calling a page-defined function
Johan Sundström
oyasumi at gmail.com
Tue Aug 15 18:25:03 EDT 2006
On 8/14/06, Joe la Poutre <jsixpack at gmail.com> wrote:
> Cool (I was wondering if the click-receiver must be of a certain type,
> but that would be rather weird, as every element is valid to add an
> inline onclick attribute to).
Well, in a way, it does. I haven't managed to send click events to
script embedded Flash applets from javascript, for instance -- I have
tried and failed with the YouTube and Google Video flash movie
players, to my chagrin; Flash seems to do native mouse event handling
without paying any regard to synthesized DOM mouse events. Not that
I'm surprised, but still.
Should anyone manage to do something like that, by the way, I'd be
interested in hearing about it. Flash is boring tech until you can
hijack it to opt yourself in to innovate around it.
A helpful XPath tip, by the way: instead of
"//span[@id='zoomed-out']/a" I would suggest the syntax
"id('zoomed-out')/a" I have grown fond of. Shorter, neater and more
readable as well.
(Some random bypassing entity wishes you all a good day.)
--
/ Johan Sundström, http://ecmanaut.blogspot.com/
More information about the Greasemonkey
mailing list