Try it at https://daniellowtw.github.io/urlcmd
This is a productivity tool by hacking the browser's custom search engine and treating the query string as a command with its arguments. It allows you to create aliases (shortcuts) for:
- Parameterised templated url (e.g.
https://<service>.<cluster>.yourdomain.com) - Built-in utility functions (e.g.
secs [timestamp]) - Third-party functions (e.g.
import <alias> <url>)
This allows importing of personal aliases, like a portable .bashrc. Bring your keyboard ninja skills to someone else's machine today!
The following assumes you've added the keyword url for the search engine, and will type the commands in the omnibox.
alias x http://xkcd.commeans typingurl xwill redirect you tohttp://xkcd.com.alias gd https://godoc.org/?q={0}means typingurl gd atomicwould search for atomic in another search engine.import gcd examples/gcd.jswill import thegcdfunction so that typingurl gcd 14 21will print7.alias xwill remove the aliasx
Webapp: Go to https://daniellowtw.github.io/urlcmd and click on Install at the top right.
Chrome extension : https://chrome.google.com/webstore/detail/urlcmd/eeinlddplcljmdnfbghaamjhbgolnbni
Alt-G or prefix your command with url in the URL bar.
- Greatest common divisor
import gcd examples/gcd.js - Random number generator
import rand examples/rand.js - Binary <-> ascii
import bin examples/bin.js