To be afraid is to love. To five fear is to hate.

Félix Leclerc

This video is just awesome. I saw it on National Geographic, and I was really surprised by the iguana's skills.

This show us how much we keep learning from our mother nature.

Today I start a new adventure with funceble, a new script to check domains or IP availability.

Funceble is now described as:

[an] excellent script for checking ACTIVE, INACTIVE and EXPIRED domain names.

Where does the idea come from?

The idea of the script came under a discussion around the famous Steven Black's hosts file(s). Indeed, the hosts file is really great but the main problem is that the there's probably many domains that do not exist anymore.

So I planned to write funceble.

An explanation of the script ?

A full releases changelog can be found here.

Special Thanks

Thank you for your awesome hosts lists, support or contributions which helped (and/or still help) me build this script. :smile: :+1:


Thank you for your awesome ideas or contributions which make or made funceble better!! :+1: :100: :1st_place_medal:

Supporting the project

Funceble and dead-hosts are powered by :coffee:!

This project helps you and or you like it? Why don't you Buy me a cup of coffee? :smile_cat:

How to get random background (in JavaScript)? That's what I do here!


In order to be more efficient I choose to write some Functions.


We need a function which return a list of link (or filename) to use as background.

 * Return a list of URL
function backgrounds() {
    // We create a variable
    var imageURLs = [
        // We assign in an array the list of URL/filename we want as background

    // We return the created variable
    return imageURLs;


We need a function that return a random in range [0-x] where x is the length of backgrounds().

 * Return a random number in range [0-x] where x is the length of backgrounds
 * @param {int} max
 * @returns {int}
function randomNumber(max) {
    return Math.floor((Math.random() * max));


We need a function that return a background from backgrounds() with randomNumber() as index.

 * Get a random url from backgrounds
 * @returns {str}
function getBackground() {
    var numberOfImages = backgrounds().length,
        uniqueNumber = randomNumber(numberOfImages);
    return backgrounds()[uniqueNumber];


we need a function that return a well formatted css for the background.

 * show background on screen
 * @returns {DOM}
function showBackground() { = "url('" + getBackground() + "')"; = "center center"; = "no-repeat"; = "fixed";

Load all on page loading

// On load, we show the background on screen
window.onload = showBackground();

Final script

Known issue

This script doesn't work on safari.

Intelligence defends peace. Intelligence has a horror of war.

Honoré de Balzac