Evan Martin (evan) wrote in evan_tech,
Evan Martin

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!

  • blog moved

    As described elsewhere, I've quit LiveJournal. If you're interested in my continuing posts, you should look at one of these (each contains feed…

  • dremel

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

  • treemaps

    I finally wrote up my recent adventures in treemapping, complete with nifty clickable visualizations.

  • Post a new comment


    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.