GithubHelp home page GithubHelp logo

ekacnet / lunnybol Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rithik/bunnylol

0.0 0.0 0.0 1.18 MB

My implementation of Facebook's Bunnylol

Home Page: https://rithik.me/bunnylol

License: MIT License

JavaScript 87.32% CSS 0.19% HTML 8.37% Shell 2.60% Dockerfile 1.52%

lunnybol's Introduction

Rithik lunnybol

While I was at Facebook, I heavily used the internally developed tool lunnybol. I found several other versions of lunnybol that required me to host a server. This version of lunnybol does not need to be hosted on a server.

Currently, this is hosted on https://rithik.me/lunnybol. However, you can host it on any website that you would like (even on GitHub Pages). Since this is going to be your primary search engine for every new tab you open, I would suggest that you don't host it somewhere that may take a while to spin up the static page (like Heroku where your VM could go to sleep).

A note: a lot of these commands are customized for me. It is probably most beneficial for you to fork this repo and add/remove commands so that it is optimized for commands you actually need.

Example Commands

Command Name URL
fb Facebook https://facebook.com/
m Messenger Desktop App messenger://
mw Messenger Web https://www.messenger.com/
wa WhatsApp Desktop App whatsapp://
waw WhatsApp Web https://web.whatsapp.com/
gm Gmail https://mail.google.com/mail/u/0
gd Google Drive https://drive.google.com/drive/u/0
yt YouTube https://youtube.com/
gh GitHub https://github.com/
r Reddit https://reddit.com/
lk Linkedin https://linkedin.com/
vs VS Code vscode://
hs Hubspot https://app.hubspot.com/live-messages/
cal Google Calendar https://calendar.google.com/calendar/r
DEFAULT Default - Duck duck go Search https://duckduckgo.com/

Setup

Firefox

  1. Right click in the address bar you should see something like Add "search LunnyBOL".

  2. Click on it.

  3. Go in the settings (Menu edit and then at the bottom settings).

  4. Click on Search in the left hand menu.

  5. In the search shortcut list, find LunnyBOL.

  6. Double click and enter a shortcut for instance lol.

Chrome

  1. Open Chrome and click the three dots. Click Settings and scroll down to Search Engines.

  2. Click Manage Search Engines.

  3. Add a new search engine with the URL being https://ekacnet.github.io/lunnybol?search=%s. Of course, you should change the rithik.me part to your own domain.

  4. Make this the default search engine.

Safari

Don't hurt yourself and pick something else seriously. But if you really want to you need an app like AlfredApp and configure a search with the value https://ekacnet.github.io/lunnybol?search={search} and a prefix of your liking like lol.

Adding a command

  1. Run npm install so that build.sh (JavaScript type checker) can run.

  2. Open up the src/commands.js file. Add your command to the COMMANDS object. You must include a name and url attribute and you can add an additional searchurl attribute if you would to be able to type a command like yt NBA Highlights (in which case, lunnybol will automatically search for NBA Highlights on YouTube).

  3. Run build.sh one more time to build the minimized file.

  4. Publish to your website or run locally: ./run.sh

Running locally

The easiest way is to do:

docker build . -t lunnybol
docker run --rm -d -p 3000:3000 lunnybol

Since we use import module syntax, we need to run a server to bypass CORS issues. You can setup the server by running npm install then build.sh, followed by node server.js. The server should be up and visible at localhost:3000.

lunnybol's People

Contributors

actions-user avatar dependabot[bot] avatar ekacnet avatar rithik avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.