// ==UserScript==
// @name Get Free
// @namespace
http://tampermonkey.net/
// @version 2025-07-11
// @description try to take over the world!
// @author You
// @match
https://freebitco.in/?op=home
// @icon
https://www.google.com/s2/favicons?sz=64&domain=freebitco.in
// @grant none
// ==/UserScript==
function main() {
console.log("Status: Page loaded. Waiting for captcha solving...");
// Chờ 10–15 giây cho extension giải captcha
setTimeout(function () {
const rollBtn = $('#free_play_form_button');
if (rollBtn.is(':visible')) {
console.log("Status: ✅ ROLL button is visible. Clicking...");
rollBtn.click();
// Kiểm tra lại sau 5 giây: nếu nút vẫn còn hiển thị => reload trang
setTimeout(function () {
if ($('#free_play_form_button').is(':visible')) {
console.log("⚠️ ROLL button still visible after click → Reloading page...");
location.reload();
} else {
console.log("✅ ROLL successful. Waiting to close popup...");
closePopup();
}
}, 5000);
} else {
console.log("❌ ROLL button not visible. Will retry in 5s...");
setTimeout(main, 5000); // thử lại sau 5s nếu nút chưa có
}
}, random(10000, 15000)); // chờ 10–15s trước khi xử lý ROLL
}
// Đóng popup sau 12–18s, rồi chờ 1h mới quay lại
function closePopup() {
setTimeout(function () {
const closeBtn = $('.close-reveal-modal')[0];
if (closeBtn) {
closeBtn.click();
console.log("✅ Popup closed.");
} else {
console.log("⚠️ Popup close button not found.");
}
// Chờ 1 giờ trước khi chạy lại
setTimeout(main, random(3605000, 3615000));
}, random(12000, 18000));
}
// Hàm random
function random(min, max) {
return min + Math.random() * (max - min);
}
// Khi trang đã load
$(document).ready(function () {
main();
});
💬 Comments