// ==UserScript==
// @name таймер для claimclicks.com и kriptoempire.com
// @namespace
http://tampermonkey.net/
// @version 2025-09-16
// @description try to take over the world!
// @author You
// @match
https://claimclicks.com/*
// @match
https://kriptoempire.com/*
// @icon
https://www.google.com/s2/favicons?sz=64&domain=claimclicks.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
window.alert = function() {};
window.confirm = function() {};
//Do not execute if window is a pop up
if(window.name){
// return;
}
var tm = new Date().getTime() + 10000; // 10 sec in milliseconds
setInterval(function(){
var secondsPassed = (tm - new Date().getTime()) / 1000;
// update UI
}, 100); // You can use variable here in different visibility modes
window.addEventListener(
"visibilitychange",
function (event) {
event.stopImmediatePropagation();
},
true
);
window.addEventListener(
"webkitvisibilitychange",
function (event) {
event.stopImmediatePropagation();
},
true
);
window.addEventListener(
"blur",
function (event) {
event.stopImmediatePropagation();
},
true
);
var startButton = document.createElement('captcha');
startButton.style.position = 'fixed';
startButton.style.top = '100px';
startButton.style.right = '0px';
startButton.style.color = 'red';
document.body.appendChild(startButton);
var countdown = 60*3;
if(window.location.href.includes("faucet")){
setTimeout(() => {
countdown = 60*30;
var time=document.querySelector("#timer");
if(time){
console.log(time.textContent.split(":")[0]*60+time.textContent.split(":")[1]*1);
countdown = time.textContent.split(":")[0]*60+time.textContent.split(":")[1]*1;
}
}, 5000);
function waitForElm(selector) {
return new Promise(resolve => {
if (document.querySelector(selector)) {
return resolve(document.querySelector(selector));
}
const observer = new MutationObserver(mutations => {
if (document.querySelector(selector)) {
observer.disconnect();
resolve(document.querySelector(selector));
}
});
// If you get "parameter 1 is not of type 'Node'" error, see
https://stackoverflow.com/a/77855838/492336
observer.observe(document.body, {
childList: true,
subtree: true
});
});
}
waitForElm("#btn_go > a").then((elm) => {
console.log("#btn_go > a");
if(elm.textContent=='Go Claim')elm.click();
});
waitForElm("#basic-elements > div > div > div.card-body > div > div > div.row.justify-content-center > div > div > form > div.card-body.py-1 > button").then((elm) => {
console.log("#basic-elements > div > div > div.card-body > div > div > div.row.justify-content-center > div > div > form > div.card-body.py-1 > button");
if(elm.textContent.includes('Claim Now'))elm.click();
});
//===============
}
const timerInterval = setInterval(function() {
countdown--;
if(!(countdown%300)){
console.log("faucet");
document.querySelector("#navbarDropdownMenuLink > p").click();
document.querySelector("#example-navbar-primary > ul > li.nav-item.dropdown.show > div > a:nth-child(8)").click()
}
if (countdown <= 0) {
startButton.innerHTML = 'Refresh......';
clearInterval(timerInterval);
document.querySelector("#navbarDropdownMenuLink > p").click();
document.querySelector("#example-navbar-primary > ul > li.nav-item.dropdown.show > div > a:nth-child(8)").click();
} else {
const countdownText = document.createTextNode(` Wait for ${toCustomTimeString(countdown)} seconds`);
document.title = toCustomTimeString(countdown);
startButton.innerHTML = '';
startButton.appendChild(countdownText);
}
}, 1000);
const toCustomTimeString = (seconds) => {
const hours = Math.floor(seconds / 3600).toString().padStart(2, '0');
const minutes = Math.floor((seconds % 3600) / 60).toString().padStart(2, '0');
const secondsPart = (seconds % 60).toString().padStart(2, '0');
return `${minutes}:${secondsPart}`;
};
})();