rabbit auto big

try to take over the world!

Version vom 22.07.2017. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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

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

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

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

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         rabbit auto big
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  try to take over the world!
// @author       You
// @match        https://www.rabb.it/*
// @grant        none
// donationsURL paypal.me/JonathanHeindl :3
// ==/UserScript==

var getter = function (string, iF) {
    var obj = this.g.I(string, iF);
    if (!obj) {
        obj = this.g.C(string, iF);
    }
    if (!obj) {
        obj = this.g.T(string, iF);
    }
    return obj;
};
getter.I = function ID(string, iF) {
    if (iF !== undefined) {
        if (iF.localName === "iframe") {
            return iF.contentDocument.getElementById(string);
        }
        return undefined;
    }
    return document.getElementById(string);
};
getter.C = function className(string, iF) {
    var list;
    if (iF !== undefined) {
        if (iF.localName === "iframe") {
            list = iF.contentDocument.getElementsByClassName(string);
        } else {
            list = iF.getElementsByClassName(string);
        }
    } else {
        list = document.getElementsByClassName(string);
    }
    if (list.length === 1) {
        return list[0];
    } else if (list.length === 0) {
        return undefined;
    }
    return list;
};
getter.T = function tag(string, iF) {
    var list;
    if (iF !== undefined) {
        if (iF.localName === "iframe") {
            list = iF.contentDocument.getElementsByTagName(string);
        } else {
            list = iF.getElementsByTagName(string);
        }
    } else {
        list = document.getElementsByTagName(string);
    }
    if (list.length === 1) {
        return list[0];
    } else if (list.length === 0) {
        return undefined;
    }
    return list;
};

var sc={
    g:getter
};
(function() {
    'use strict';
    var lastmove = new Date().valueOf();
    var hidden = false;
    document.onmousemove = function (e) {
        lastmove = new Date().valueOf();
        if (hidden === true) {
            show();
        }
    };
    function hide() {
        var barbtn = sc.g("toolbarButton moreButton");
        if (barbtn) {
            barbtn.click();
        }
        setTimeout(function () {
            var bbl = sc.g("toolbarMenuItem hideBubblesItem off");
            if (bbl) {
                bbl.click();
            }
            setTimeout(function () {
                var barbtn = sc.g("toolbarButton moreButton");
                if (barbtn) {
                    //barbtn.click();
                }
                setTimeout(function () {
                    var fs=sc.g("toolbarMenuItem fullscreenItem off");
                    if(fs){
                       //fs.click(); 
                    }
                }, 10);
            }, 200);
        }, 10);
        hidden = true;
    }
    function show() {
        var barbtn = sc.g("toolbarButton moreButton");
        if (barbtn) {
            barbtn.click();
        }
        setTimeout(function () {
            var bbl = sc.g("toolbarMenuItem hideBubblesItem on");
            if (bbl) {
                bbl.click();
            }
            setTimeout(function () {
                var barbtn = sc.g("toolbarButton moreButton");
                if (barbtn) {
                   // barbtn.click();
                }
                setTimeout(function () {
                    var fs=sc.g("toolbarMenuItem fullscreenItem on");
                    if(fs){
                      // fs.click();
                    }
                }, 10);
            }, 200);
        }, 10);
        hidden = false;
    }
    function mcheck() {
        if (new Date().valueOf() - lastmove > 2000) {
            if (hidden === false) {
                hide();
            }
        }
        setTimeout(mcheck, 2000);
    }
    setTimeout(mcheck,10000);
    // Your code here...
})();