Skip to content

Browser Extension that gives a random new quote.

License

Notifications You must be signed in to change notification settings

orsenthil/fortune-browser-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fortune-browser-extension

A minimalist extension that displays a new and an insightful quote when you open a new tab.

This is available for Google Chrome and Mozilla Firefox.

This browser extension is named after popular Unix Program fortune displays a quote in the command line.

I used to use fortune command and found the quotes funny and interesting. Over years, we have started using browser more than command line. The browser with tabs is a modern shell of programming. I wanted a fortune program for the browser.

I developed this using Python code hosted in Google App Engine, and the client side is written using Javascript as a browser addon. In the backend there is a database where I keep the quote and author in a table. There is API call that returns the quote and the author in the JSON format. To call the API visit http://quotes-1271.appspot.com/json

This is an unauthenticated API as it read-only GET call, and cannot change the state of the system.

The client side is handled by javascript libraries, Handlebars and Jquery. Handlebars creates a template to insert the quote. The jquery does the DOM manipulation and and inserts the quote in the extension webpage.

The quotes were curated by me when I came across those thoughts in books and elsewhere. Reading good quotes will reinforce the content in our mind and it will help us with motivation and healthy thinking.

Here are few example quotes that I like to share.

We were on the point of abandoning our work when the book of Mouillard fell into our hands, and we continued with the results you know. - Wilbur Wright, American Inventor/Aviator (1867-1921)

And this is aviation; I give it to the world. - Louis Mouillard, French Inventor/Aeronaut (1834-1897)

I have see far because, I was standing on the shoulders of the giants. - Isaac Newton (1643-1727)

This browser extension for firefox and chrome, similarly, displays a random and an insightful quote in a new browser tab.

Enjoy using this.

Get the extension directly from the webstore.

Google Chrome Extension

Firefox Addons

Screenshot

screenshot

Video Demo

Demo