Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: ee1f28e9a0
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (11 sloc) 0.966 kb

Omnipipe

"What if the URL bar supported unix pipe semantics? ex: "http://longurl.com | bitly", "http://foo.cn | translate english", ..."

Demo @ http://omnipipe.herokuapp.com/

How does it work?

Unfortunately Chrome doesn't provide an API to listen to "url submit" events, but we can approximate what this functionality would "feel" like by creating and leveraging a custom search engine. This "search engine" simply takes in the URL and the pipe parameters as a query string, and then does the right thing.

Example commands

  • googl: Take the input URL, shorten it via goo.gl shortener and redirect me to the resulting page.
  • grep: World's simplest grep.. Download the page, walk over the content line by line and output matching lines.

For instructions on how to install & use, check http://omnipipe.herokuapp.com/

License

MIT License - Copyright (c) 2011 Ilya Grigorik

Jump to Line
Something went wrong with that request. Please try again.