Re: Add accesskey attribute to one particular <a> element?



On Thu, 2006-12-21 at 00:10 +0000, Matej Cepl wrote:
> Hi,
> 
> I would need to accesskey="G" to "Go to bug" link on our company's
> bugzilla. I could easily do it with simple Greasemonkey script (see
> http://www.ceplovi.cz/matej/drobky/portfolio/rbmjumpto22.user.js as an
> example of what I mean), but I would prefer to keep Epiphany as my default
> browser, so my question is: can I do something like that by writing an
> epiphany extension? Or in other words, is DOM RW accessible via Pythonic
> extension to Epiphany?

Not yet. It depends on a feature of PyXPCOM which, while it's in the
latest development versions of Mozilla, is not to my knowledge in any
distributions.

When it is, though... it is going to be *so* cool. After manipulating
the DOM tree in Python, you will never want to go back to JavaScript :).

In the meantime, you can use Epiphany's GreaseMonkey extension. I get a
"Forbidden" error when trying to access the script you link to, but if
it's just playing with the DOM then Epiphany's GreaseMonkey extension
should run it fine.

Alternatively, you can create an extension in C. C extensions have
access to the DOM tree -- they just need to integrate a C++ file or two.
What fun!

-- 
Adam Hooper
adamh densi com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]