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.com
means typingurl x
will redirect you tohttp://xkcd.com
.alias gd https://godoc.org/?q={0}
means typingurl gd atomic
would search for atomic in another search engine.import gcd examples/gcd.js
will import thegcd
function so that typingurl gcd 14 21
will print7
.alias x
will 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