title: Find and replace in a webpage using javascript
body: <p>What I want to do is replace all instances of 'foo' in a webpage with 'bar' in a JS bookmarklet/greasemonkey script.  How can I do this?  I suppose jQuery works, as there're hacks to include those in both bookmarklets and greasemonkey scripts.</p>