Last active
March 21, 2024 09:06
-
-
Save valex/c5ee9c01c3a5aaf34b9de4e26a9f0737 to your computer and use it in GitHub Desktop.
Script for freebitco.in that can click ROLL button automatically
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name freebitco.in Autoroll Autoclick script | |
// @namespace https://gist.github.com/valex/c5ee9c01c3a5aaf34b9de4e26a9f0737 | |
// @version 0.1 | |
// @description Script for freebitco.in that can click ROLL button automatically | |
// @author valex | |
// @match https://freebitco.in/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=freebitco.in | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== | |
// This script DOES NOT RESOLVES captcha | |
// This script works only for freebitco.in premium users, who can roll WITHOUT CAPTCHA | |
// ================================================ | |
// | |
// If you like this script | |
// please register using link: https://freebitco.in/?r=41688905 | |
// | |
// Or please donate BTC: bc1qysg9g7xdguxuz233d8n5v2dwykaxp0pm6xcxzx | |
// | |
// ================================================ | |
// ============ INSTALLATION ====================== | |
// | |
// 1. Use Tampermonkey extension to run script | |
// Chrome: https://chrome.google.com/webstore/detail/dhdgffkkebhmkfjojejmpbldmpobfkfo | |
// Firefox: https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/ | |
// Opera: https://addons.opera.com/en/extensions/details/tampermonkey-beta/ | |
// Tampermonkey home page: https://www.tampermonkey.net/ | |
// | |
// 2. In Tampermonkey dashboard click '+' sign to add new script | |
// 3. Copy and paste into tampermonkey the entire contents of this file | |
// 4. Save script (Ctrl + S) | |
// 5. Open freebitco.in in new tab or refresh page | |
// | |
// Tampermonkey FAQ page: https://www.tampermonkey.net/faq.php | |
// | |
// | |
// Script is starting after page reload and trying to click ROLL button if it is active | |
// | |
// Please try to keep the tab with freebitco.in active | |
(async () => { | |
const random = (min, max) => { | |
return Math.floor(Math.random() * (max - min + 1) + min); | |
} | |
// Delay before script starts after page load/reload [min, max] [10sec, 15sec] | |
const delayBeforeStart = [10 * 1000, 15 * 1000]; | |
// Delay before roll [min, max] [30sec, 60sec] | |
const delayBeforeRoll = [30 * 1000, 60 * 1000]; | |
// Delay before close popup [min, max] [10sec, 30sec] | |
const delayBeforeClosePopup = [10 * 1000, 30 * 1000]; | |
const freebitcoinAutorollAutoclick = async function(){ | |
let rollBtn = document.getElementById('free_play_form_button'); | |
let rollBtnStyle = window.getComputedStyle(rollBtn); | |
if(rollBtnStyle.display !== 'none'){ | |
// do click | |
let beforeRollTimeout = random(...delayBeforeRoll); | |
console.log('Autoroll script started'); | |
console.log('Autoroll script: will do click after '+beforeRollTimeout/1000+' seconds'); | |
await new Promise((res) => setTimeout(res, beforeRollTimeout)); | |
console.log('Autoroll script: clicking'); | |
// if button still active | |
if(rollBtnStyle.display !== 'none'){ | |
rollBtn.click(); | |
let beforeClosePopupTimeout = random(...delayBeforeClosePopup); | |
console.log('Autoroll script: will close popup after '+beforeClosePopupTimeout/1000+' seconds'); | |
await new Promise((res) => setTimeout(res, beforeClosePopupTimeout)); | |
const buttonClosePopupEl = document.querySelector( | |
"#myModal22 a.close-reveal-modal" | |
); | |
buttonClosePopupEl.click(); | |
}else{ | |
console.log('Autoroll script: Maybe Roll button has already been clicked'); | |
} | |
}else{ | |
console.log('Autoroll script: Roll button is not available'); | |
} | |
console.log('Autoroll script finished'); | |
} | |
console.log('Autoroll script loaded'); | |
let delayBeforeStartTimeout = random(...delayBeforeStart); | |
console.log('Autoroll script: will start after '+delayBeforeStartTimeout/1000+' seconds'); | |
setTimeout(freebitcoinAutorollAutoclick, delayBeforeStartTimeout) | |
})(); | |
// ================================================ | |
// | |
// If you like this script | |
// please register using link: https://freebitco.in/?r=41688905 | |
// | |
// Or please donate BTC: bc1qysg9g7xdguxuz233d8n5v2dwykaxp0pm6xcxzx | |
// | |
// ================================================ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for making the effort to provide this service, but I want something from you. I want a script to achieve satoshi, such as 10000 in a roll. I hope you will provide this service to me, thank you.