bunnylol
, but in JS, configurable, and deployed to Github Pages.
see: bunny1
I was on a plane with an hour to kill, and decided to snack on a tool from my days at Facebook.
I miss bunnylol
. It's a fast and easy way to find things in Chrome without having to type for a (hopefully correct) auto-complete, or to use bookmarks.
So this is a "simple impl" of bunny1
using create-react-app
that can be deployed to Github Pages and used in Google Chrome. It uses path-to-regexp
to convert command templates to parameters for eventual URLs.
You can use my deployment:
- Open Chrome.
- Go to search engines.
- Add
bunnyghp
to the list:- Search Engine:
bunnyghp
(or other) - Keyword:
b
(or your preference) - URL:
https://clintandrewhall.com/bunnyghp/?q=%s
- Search Engine:
- Open Chrome, click the nav bar, type
b
and:- your command, or
h
,help
, orhome
for a list of commands.
...or you can fork and edit config.ts
and deploy yourself.
There are a few parameters you can add to the URL, if you're using an instance that you haven't deployed yourself:
s=1
: if the path doesn't match, send the query to Google.repo=xxx
: the default repo for Github commands.person=xxx
: the default person for Github commands.
For example:
https://clintandrewhall.github.io/bunnyghp/?q=%s&s=1&person=clintandrewhall&repo=clintandrewhall/bunnyghp
If you want to make bunnyghp
your default search engine, (without the Keyword), you can add &s=1
to the end of the URL, and any search string will forward to Google:
- Search Engine:
bunnyghp
(or other) - URL:
https://clintandrewhall.github.io/bunnyghp/?q=%s&s=1