Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am samnazar on github.
  • I am snazarian (https://keybase.io/snazarian) on keybase.
  • I have a public key ASAfBIFcYEakqf8JTvIOfnKP4ezae8ctyu3Phg8tCwLrvgo

To claim this, I am signing this object:

@SamNazar
SamNazar / winesearches.js.txt
Last active March 18, 2016 21:24
Chrome custom search engine for wine data for Bryan
//Bookmarklet form that searches for the current selection, opening 2 new windows (will trip popup-blocker)
javascript:(function(){search = document.getSelection().toString().split(" ").join("+"); window.open("http://www.cellartracker.com/list.asp?fInStock=0&Table=List&iUserOverride=0&szSearch=" + search); window.open("http://www.wine-searcher.com/find/" + search); })();
// chrome custom search engine, opens one new window/tab as well as assigning the current location
javascript:{search = "%s".split(" ").join("+"); window.open("http://www.cellartracker.com/list.asp?fInStock=0&Table=List&iUserOverride=0&szSearch=" + search); window.location.assign("http://www.wine-searcher.com/find/" + search); }