This content originally appeared on DEV Community and was authored by Senthil Kumaran
A minimalist browser extension that displays a new quote in the browser
tab. For example, when you open a new tab, you will see quotes like
this:
"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 {{% wikipedia
article="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 {{% wikipedia article="Document_Object_Model" %}}
manipulation.
Get the extension directly from the webstore
Screenshot
Video Demo
This content originally appeared on DEV Community and was authored by Senthil Kumaran

Senthil Kumaran | Sciencx (2025-06-25T20:19:41+00:00) fortune. Retrieved from https://www.scien.cx/2025/06/25/fortune/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.