An open API service indexing awesome lists of open source software.

https://github.com/orsenthil/fortune

Browser Extension that gives a random new quote.
https://github.com/orsenthil/fortune

browser-extension chrome chrome-extension firefox firefox-extension

Last synced: 11 months ago
JSON representation

Browser Extension that gives a random new quote.

Awesome Lists containing this project

README

          

# fortune

A minimalist browser extension that displays a new quote in the browser tab.

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

_"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)_

----

This extension is named after popular Unix Program [fortune](https://en.wikipedia.org/wiki/Fortune_(Unix)), a command line utility which displays quotes in the shell. The browser with tabs is a modern shell interface of the computer. And this is the fortune program for the browser.

## Technical Details

I developed this with Python hosted on Google App Engine, and the client side 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 entirely handled by Javascript, and it displays the quote using simple [DOM](https://en.wikipedia.org/wiki/Document_Object_Model) manipulation.

## Get the extension directly from the webstore.

[![Google Chrome Extension](assets/promotional/chrome-web-store.png)](https://chromewebstore.google.com/detail/fortune/kmcoofcbagjmlfbkoopfohngcnfnaakb)

[![Firefox Addons](assets/promotional/firefox-addon.png)](https://addons.mozilla.org/en-US/firefox/addon/fortune-browser-extension/)

# Screenshot

![screenshot](https://i.imgur.com/qLlqW7t.png)

# Video Demo

[![Demo](http://img.youtube.com/vi/3S8b3eROxUY/0.jpg)](http://www.youtube.com/watch?v=3S8b3eROxUY "Demo")