I'm trying to create a safari extension that will place an "Add to BibDesk" link after any text that looks like a BibText entry. BibText entries look like this:
@string{
foo = "bar",
foo2 = "bar2"
}
I know how to construct the necessary regex, but my question is what's the best way, using javascript, to search all the text on a page for a particular bit of text?