Quick clone of @rithik/bunnylol
-
Open Chrome and click the three dots. Click
Settings
and scroll down toSearch Engines
. -
Click
Manage Search Engines
. -
Add a new search engine with the URL being
https://djtran.github.io/bunnylol/index.html?search=%s
. -
Make this the default search engine.
-
Run
npm install
so thatflow
(JavaScript type checker) can run. -
Open up the
src/commands.js
file. Add your command to theCOMMANDS
object. You must include aname
andurl
attribute and you can add an additionalsearchurl
attribute if you would to be able to type a command likeyt NBA Highlights
(in which case,bunnylol
will automatically search for NBA Highlights on YouTube). Runnpm run flow
for type checking. -
Run
npm run pub
. -
Test, commit, push
Note that the cache ttl set by github pages is set to 600 (10 minutes), so after you make any changes or push you won't see a change for 10 minutes. As far as I can tell, there's no way to change that setting.