Hacker News new | ask | show | jobs
by cvs268 2940 days ago
Deep Thought Tabs https://addons.mozilla.org/en-US/firefox/addon/deep-thought-...

Adds funny, profound observations in newly opened empty tabs, with fresh images each time.

    - WebExtension written in plain JavaScript. No libraries. No cruft.
    - Displays "deep-thoughts" even in offline-mode (no background-images).
    - Fetches relevant fresh background images each-time from Unsplash and Flickr.
Checkout the source to learn how to create simple webextension addons for Firefox in JavaScript.

Few interesting bits of code:

    * Fisher-Yates shuffle algorithm.
    * Ken-Burns effect for still images.
    * Visual (image-preview) tooltips in CSS.
    * Asynchronous XMLHttpRequest.