Google Images Randomizer

try to take over the world!

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Google Images Randomizer
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  try to take over the world!
// @author       You
// @match        https://*/*
// @grant        none
// ==/UserScript==

/**
 *
 *
 */

////////////////////////////////////////////////////////////////////////
//                       RANDOM-GOOGLE-IMAGES.JS                      //
////////////////////////////////////////////////////////////////////////

(function(){
    'use strict';

    /*
        USAGE:
            ..
    */

    const host = document.querySelector('#sfdiv');
    const ston = (s)=>Number('0x'+s);
    const mask = (l)=>ston('ffffffffffffffff'.substr(0,l||0));
    const rand_fd = function(l,e){
        return Math.floor(Math.random()*mask(l)).toString(16)+e;
    };

    const next = ()=>'https://www.google.de/search?client=windows&hs=8TF&tbm=isch&sa=1&q=%22'+rand_fd(8,'.')+'%22';
    window.rurl = next();

////////////////////////////////////////////////////////////////////////

    const button = document.createElement('div');

    button.innerHTML=`
    <div id="random_web" onclick="window.location.href=rurl">
        <style>
            #random_web     {
                width: 35px;
                height: 35px;
                background-color: gray;
                background-image: url(https://cdn.discordapp.com/avatars/147556783412477952/50d3f9d47bbe9ec84ce1e157ce812a64.png?size=128);
                position: absolute;
                background-position: 50%;
                z-index: 50000;
                background-size: 100%;
                top: 5px;
                right: -41px;
            }
        </style>
    </div>
    `;

////////////////////////////////////////////////////////////////////////

    host.appendChild(button);

})();