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!

  • livejournal kids

    Neat image from Jack Dorsey. Every so often someone will ask me about Twitter and I'll dig up a a random day from Brad's LJ in 1999 and talk about…

  • ljrb release 0.3.1

    LiveJournal Ruby module update: This release won't die when the "useragent" property is present in an entry. I've also added support for passing…

  • ljrb 0.3.0

    ljrb 0.3.0: This release adds support for the "current_location" field and fetching friendofs in the same request as fetching friends. There's also…

  • 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.