[New] bitcoinker

We are not looking for easy ways

  1. // ==UserScript==
  2. // @name [New] bitcoinker
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-10-17
  5. // @description We are not looking for easy ways
  6. // @author Dank Odze
  7. // @match https://bitcoinker.com/
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=bitcoinker.com
  9. // @license MIT
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. function soundClick() {
  16. var audio = new Audio(); // Создаём новый элемент Audio
  17. audio.src = "https://bitcoinker.com/wp-content/plugins/99bitcoins-btc-faucet/assets/beep.wav"; // Указываем путь к звуку "клика"
  18. audio.autoplay = true; // Автоматически запускаем
  19. }
  20. if(document.querySelector("#post-2 > div.the99btc-bf.t99f-6448.form > form > div:nth-child(1)").textContent.includes('Satoshi')) {
  21. soundClick();
  22. setTimeout(() => { soundClick(); }, 200)
  23. }
  24.  
  25. function clickMy() {
  26. var rec=document.getElementsByName("claim_coins");
  27. var posX,posY;
  28. for (var $i = 0; $i < 11; $i++) {
  29. var rect = document.querySelector('\#'+rec[$i].id);
  30. var position = {
  31. left: rect.offsetLeft,
  32. top: rect.offsetTop,
  33. };
  34.  
  35. //console.log(rec);
  36. posX = position.left;
  37. posY = position.top;
  38. console.log(posX+":"+posY);
  39. if(posX!=0) {
  40. console.log('\#'+rec[$i].id);
  41. document.querySelector('\#'+rec[$i].id).click();
  42. }
  43.  
  44. rec[$i].id = rec[$i].id.substring(0, rec[$i].id.length-1) + $i;
  45.  
  46. }
  47. }
  48. function checkRecaptcha() {
  49. const recaptchaFrame = document.querySelector("iframe[title='reCAPTCHA']");
  50. if (recaptchaFrame) {
  51. return window.grecaptcha.getResponse().length !== 0;
  52. }
  53. return false;
  54. }
  55. if(document.getElementsByClassName("timer").length==1) {
  56. let s = document.querySelector("#post-2 > div.the99btc-bf.t99f-6448.form > form > div:nth-child(1)").textContent;
  57. if(Number(s.match(/\d+/g)[7])>=Number(s.match(/\d+/g)[8])) window.location.href = "https://bitcoinker.com/check/?the99btcbfaddress=15qxbwbQyAKviof6npDZ5mE7YLHN7P2AXz&t99fid=6448";
  58. const word = document.querySelector("#post-2 > div.the99btc-bf.t99f-6448.form > form > div:nth-child(1)").textContent;
  59. const pos = word.indexOf('/');
  60. console.log(word.slice(pos-4, pos+6));
  61. s = word.slice(pos-4, pos+6);
  62. console.log(s.match(/\d+/g)[0]);
  63. console.log(s.match(/\d+/g)[1]);
  64. if(Number(s.match(/\d+/g)[0])>=Number(s.match(/\d+/g)[1])) window.location.href = "https://bitcoinker.com/check/?the99btcbfaddress=15qxbwbQyAKviof6npDZ5mE7YLHN7P2AXz&t99fid=6448";
  65. }
  66.  
  67. if(document.getElementsByClassName("timer").length==0){
  68. console.log('Timet off');
  69. var intervalID = setInterval(function() {
  70. // if(grecaptcha.getResponse()!='') {
  71. if(checkRecaptcha()) {
  72. //clearInterval(intervalID);
  73. console.log('click');
  74. setTimeout(() => { clickMy(); }, 1200)
  75. }
  76. }, 5000)
  77. }})();