Let's go through the creation of a bookmarklet that removes the http referrers from all links in a page. This has been tested in Safari and Firefox.
This will only work on <a> tags in pages.
Essentially we want to perform the following for all the <a> tags in the page:
Remove all "onmousedown","onmouseover","onclick" events.
This way no referrer will be send to the visiting link.
The loop we will need to execute is:
Which can be turned into the following bookmarklet: Remove Referrer
Using the same code I've also made a Safari 5 extension which can be downloaded from here: Referrer Remove
The extensions adds a context menu called "Remove Referrer" that can be found by right-clicking on a page.
Note: You will need to enable the extensions.