home

my firefox custom homepage
Log | Files | Refs | README | git clone https://git.ne02ptzero.me/git/home

commit 45a170bb933760ca124506e8544c1bc8b3316585
parent 076b5e1eb7c76d0e63fa8677a80ea4e09616f72b
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Tue,  3 Oct 2017 18:38:11 +0200

Merge branch 'master' of github.com:Ne02ptzero/home

Diffstat:
MREADME.md | 46++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 44 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -1,5 +1,5 @@ # Firefox Home Page - +![Image](https://i.imgur.com/vMecc7g.png) ## Install Clone ``` @@ -18,7 +18,7 @@ sudo node server.js Note that you can run the server as a normal user if you don't use the ```80``` port. -Go to [the home page)(127.0.0.1) +Go to [the home page](127.0.0.1) ## Integration with firefox Install the [New tabs Override addon](https://addons.mozilla.org/en-US/firefox/addon/new-tab-override/) @@ -28,3 +28,45 @@ Do not forget to check the ```Focus``` option. If you're like me and do not like the default addressbar, add an entry in your ```/etc/hosts``` file like: ```127.0.0.1 home.com``` and change the url to ```home.com``` in the New Tabs Override configuration. + +## Bangs +You can search directly on specific websites with bangs. +For example, if one types +``` +yt lorenzo +``` +in the search bar, he will be redirected to a youtube search of the keyword 'lorenzo'. See the on-site help for all the avalailable bangs. + +## Shortcuts +There are some shortcuts available in order to gain some time. For example, if one types +``` +fb +``` +in the progress bar, he will be redirected to facebook. +See all shortcuts in the main.js file, ```shortcuts``` array + +## Adding a custom bang +One must edit the ```bangs``` array in main.js, and add an entry in it: +``` +"bang": { + "url": "https://site.com/search/%s", + "help": "Something short about this site" +} +``` +With this entry, if one types ```bang test``` in his input, he will be redirected to ```https://site.com/search/test```. + +## Adding a custom shortcuts +One must edit the ```shortcuts``` array in main.js, and add an entry in it: +``` +"sh": "https://shortcuts.com" +``` +With this entry, if one types ```sh``` in his input, he will be redirected to ```https://shortcuts.com``` + +## Editing the links +All the home page links can be edited in the index.html file. + +## Editing style +All CSS style is in the main.css file. + +## Contributing +If you have new cool shortcuts / bangs, please share-them with us!