Evan Martin (evan) wrote in evan_tech,
Evan Martin
evan
evan_tech

greasemonkey extension, ii

So that didn't quite work for a few reasons, but I think I've ironed them out. The important one is that you can't modify nodes while you're iterating through an XPath result. So instead you have to use the clunkier "get snapshot" interface that instead of providing an iterator makes you call snapshotItem(i). And for some reason getSnapshotLength() was always giving me 0 as well, so instead you iterate i up until you get null back.

But it's really not that hard. If you downloaded my script before you can just install it again now and it'll overwrite the older version. You should try fixing the site of your choice, too!
Subscribe

  • dremel

    They published a paper on Dremel, my favorite previously-unpublished tool from the Google toolchest. Greg Linden discusses it: "[...] it is capable…

  • more on synonyms

    Before Chrome, this is what I spent much of my Google career working on.

  • chrome

    I guess our project is in the news today... I'm glad that I finally can tell people what I work on at Google, and I'm glad I get to work primarily…

  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments