$1
from the console, so if you want to register an event handler on something in a page to try out something, you could run $1.addEventHandler(...)
. Or replace or otherwise process its innerHTML, and so on. Useful.And it gets better.
Webby thoughts, most about around interesting applications of ecmascript in relation to other open web standards. I live in Mountain View, California, and spend some of my spare time co-maintaining Greasemonkey together with Anthony Lieuallen.
$1
from the console, so if you want to register an event handler on something in a page to try out something, you could run $1.addEventHandler(...)
. Or replace or otherwise process its innerHTML, and so on. Useful.
Limited HTML (such as <b>, <i>, <a>) is supported. (All comments are moderated by me amd rel=nofollow gets added to links -- to deter and weed out monetized spam.)
I would prefer not to have to do this as much as you do. Comments straying too far off the post topic often lost due to attention dilution.
Note: Only a member of this blog may post a comment.
Yeah, quite useful. Joe told me this as well.
ReplyDeleteLater, I took a quick look in his code, and find some other goodies, such as $ function used as a shortcut for document.getElementById (like in Prototype) and dir(element) function which lists all attributes of an object.
FYI, in the upcoming version 0.3 I I have changed $1 to be $0. Then there is $1 which references the second-most recently inspected object, and $n(2) which returns the nth most recently inspected object.
ReplyDelete