Curtis Free's Blog

About Blog Config DB Projects Scripts Wishlist Husband, father, geek, progressive.

Using's Universal Wishlist with Vimperator

You can also use Vimperator to add items to your wish list. With the following code, the command :amzwishlist will do the trick:

"" Amazon Universal Wishlist
""" JS derived from (also see Delicious credits above).
"""" NOTE: If not already logged into, this will not always work ('&' isn't handled
""""       by Amazon when passing through login).
command! amzwishlist js add_to_amazon_wishlist();
:js <<EOJS
  add_to_amazon_wishlist = function() {
    var amazon_wishlist_url = ''
                            + '?u=' + encodeURIComponent(window.getBrowser().currentURI.spec)
                            + '&t=' + encodeURIComponent(window.getBrowser().contentDocument.title);, 'amzwishlist', 'width=900,height=553');