[Greasemonkey] Patterns

Edward Lee edilee at gmail.com
Tue Apr 12 16:10:15 EDT 2005

Well, something similar to what has already been said, but I include
this in pretty much all my scripts.

function xPath(x) {
  return document.evaluate(x, document, null,

and then do something like..

var a = xPath(...);
for (i = 0, ii = null; ii = a.snapshotItem(i); i++) { ... }


More information about the Greasemonkey mailing list