Greasy Fork

Greasy Fork is available in English.

Freebitcoin Auto - Roll

To support, register on my free bitco.in referral link : https://freebitco.in/?r=52394392

当前为 2023-12-25 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Freebitcoin Auto - Roll
// @namespace    http://daromalk
// @version      3.0.11
// @description  To support, register on my free bitco.in referral link : https://freebitco.in/?r=52394392
// @author       Daro
// @match        https://freebitco.in/*
// @grant        none
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// ==/UserScript==

// Función principal para ejecutar el script
function main() {
    console.log("Status: Page loaded.");

    // Hacer clic en el botón  (entre 2 y 4 segundos)
    setTimeout(function () {
        $('#free_play_form_button').click();
        console.log("Status: Button ROLL clicked.");
        closePopup(); // Cerrar el popup después de otro tiempo aleatorio
    }, random(2000, 4000));
}

// Función para cerrar el popup después de un tiempo aleatorio (entre 12 y 18 segundos)
function closePopup() {
    setTimeout(function () {
        $('.close-reveal-modal')[0].click();
        console.log("Status: Button CLOSE POPUP clicked.");
        setTimeout(main, random(3605000, 3615000)); // Llamar a la función principal después de un tiempo aleatorio
    }, random(12000, 18000));
}

// Función para generar un número aleatorio entre un rango
function random(min, max) {
    return min + Math.random() * (max - min);
}

// Llamar a la función principal al cargar el documento
$(document).ready(function () {
    main();
});