您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Let it work while it works
当前为
// ==UserScript== // @name bitcoinker // @namespace http://tampermonkey.net/ // @version 2024-10-15 // @description Let it work while it works // @author Dank Odze // @match https://bitcoinker.com/ // @license MIT // @icon https://www.google.com/s2/favicons?sz=64&domain=bitcoinker.com // @grant none // ==/UserScript== (function() { 'use strict'; function soundClick() { var audio = new Audio(); // Создаём новый элемент Audio audio.src = "https://bitcoinker.com/wp-content/plugins/99bitcoins-btc-faucet/assets/beep.wav"; // Указываем путь к звуку "клика" audio.autoplay = true; // Автоматически запускаем } if(document.querySelector("#post-2 > div.the99btc-bf.t99f-6448.form > form > div:nth-child(1)").textContent.includes('Satoshi')) { soundClick(); setTimeout(() => { soundClick(); }, 200) } function click(x, y) { var ev = new MouseEvent('click', { 'view': window, 'bubbles': true, 'cancelable': true, 'screenX': x, 'screenY': y }); var el = document.elementFromPoint(x, y); console.log(el); //print element to console el.dispatchEvent(ev); } function checkRecaptcha() { const recaptchaFrame = document.querySelector("iframe[title='reCAPTCHA']"); if (recaptchaFrame) { return window.grecaptcha.getResponse().length !== 0; } return false; } if(document.getElementsByClassName("timer").length==0){ var intervalID = setInterval(function() { if(document.querySelector("#post-2 > div.the99btc-bf.t99f-6448.form > form > div:nth-child(1)").textContent.includes('120 / 120')) window.close(); // if(grecaptcha.getResponse()!='') { if(checkRecaptcha()) { //clearInterval(intervalID); console.log('click'); setTimeout(() => { click(570, 450); }, 1000) } }, 5000) }})();