Hacker News new | ask | show | jobs
by kaiwetzel 5243 days ago
For me it works on most URLs not containing a path components but sometimes it chokes. Seems to return the latest successful query then?

I think it's a very useful idea. Maybe a bookmarklet is second best to a browser plugin (but this one can surely be improved):

   javascript:(function(){var%20s=encodeURIComponent(window.location.href.match(/:\/\/(.[^/]+)/)[1]);open('http://colrgrabr.swissamigos.com/?url='+s+'#'+s);})();
(stripping the path for now, to make it work)
1 comments

Hey thanks for the effort of creating a bookmarklet for ColrGrabr. I will provide it directly on the page.

Btw. you don't need the ?url= query param.

  javascript:(function(){var%20s=encodeURIComponent(window.location.href.match(/:\/\/(.[^/]+)/)[1]);open('http://colrgrabr.swissamigos.com/#+s);})();