README: 2005 Oct 06 - 2007 Jul 24

Tue Jul 24 01:50:00 2007

I did try the search-through-HTML approach to strip the Conkeror link-numbers (since I have the cut&paste selection with contamination, and the raw HTML of the page, I can search for one to find the other.) My results were fuzzier than I liked, and refining the effort didn't really hold my attention.

I found something simpler:

If I run that before the cut&paste, I lose the numbered-links entirely, and the existing code should just work...

Tue Nov 21 18:36:00 2006

Since moving to the thinkpad, I've been temporarily tagging things differently, so I can reassemble things into a consistent whole later. It's now (much) later. I think I'll also try to do some kind of "search through the HTML" trick to counteract the not-so-hidden numbers from Conkeror link-numbers.

I still want to grab the HTML of the selection instead, but I don't have time to add this to firefox myself - that starts moving in the direction of building my own browser and I really shouldn't go there :-)

Thu Oct 6 02:50:00 2005

Working through diveintogreasemonkey.org, planning to clone everything I had with applescript and Safari.

Looks like window-logging can be done with onOpen/onClose (or is onOpen implicit? given butler, it probably is) and xmlhttprequest...

ooh, since we're firefox-specific, we can use data: urls...

window.addEventListener("load", ...) can be used to run once pageload completes

window.location.href

"click" event - event.stopPropagation(), event.preventDefault()

GM_xmlhttpRequest({

}); -- like xmlhtprequest, but it isn't domain-restricted!

comics: add a fetch-next-comic-and-redirect-then-insert-myself button?

document.evaluate("//text()", document, ...) - gets all text nodes, useful for search-and-replace - but is it right for getting snapshots?

GM_setvalue, GM_getvalue - script+user specific - so probably not helpful

GM_registerMenuCommand - tools->user script commands-> ... might do, for snapshot this

> Hide Google Redirects reprograms Google Personal Search History to use normal <a href="..."> links, but still track clicks by calling GM_xmlhttpRequest on the appropriate tracking URL.

Use http://www.letitblog.com/greasemonkey-compiler/ to take the prototypes and extend them - add menu items everywhere, etc.

GeoTagThisPage:

useful trick: