Dutchycorp Script Coin roll + PTC Support

Free Dutchycorp rolls

当前为 2023-01-18 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Dutchycorp Script Coin roll + PTC Support
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.4
  5. // @description Free Dutchycorp rolls
  6. // @author vikiweb
  7. // @match https://autofaucet.dutchycorp.space/*
  8. // @match https://autofaucet.dutchycorp.space/
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=dutchycorp.space
  10. // @require http://code.jquery.com/jquery-3.4.1.min.js
  11. // @grant GM_xmlhttpRequest
  12. // @grant GM_setValue
  13. // @grant GM_getValue
  14. // @license MIT
  15. // ==/UserScript==
  16.  
  17. (function() {
  18. 'use strict';
  19. ////EDIT YOUR USER NAME AND PASSWORD BELOW////
  20. var username = "email";////EXAMPLE////
  21. var password = "password";////EXAMPLE////
  22. var dutchRoll = false;
  23.  
  24. function isCaptchaChecked() {
  25. return grecaptcha && grecaptcha.getResponse().length !== 0;
  26. }
  27.  
  28. function visibleCheck(elm) {
  29. if(!elm.offsetHeight && !elm.offsetWidth) { return false; }
  30. if(getComputedStyle(elm).visibility === 'hidden') { return false; }
  31. return true;
  32. }
  33.  
  34.  
  35. if(document.querySelector("body #features") && (window.location.href.includes("https://autofaucet.dutchycorp.space/"))) {
  36. window.location.replace("https://autofaucet.dutchycorp.space/login.php");
  37. }
  38.  
  39. if(window.location.href.includes("https://autofaucet.dutchycorp.space/login.php")){
  40.  
  41. setInterval(function() {
  42. if (document.querySelector("input[name='username']")) {
  43. document.querySelector("input[name='username']").value = username;
  44. }
  45. if (document.querySelector("input[name='password']")) {
  46. document.querySelector("input[name='password']").value = password;
  47. }
  48. }, 1000);
  49.  
  50.  
  51. setInterval(function() {
  52.  
  53. if (isCaptchaChecked()) {
  54. if (document.querySelector("button[name='login-btn']")) {
  55. document.querySelector("button[name='login-btn']").click();
  56. }
  57. }
  58. }, 6000);
  59.  
  60. }
  61.  
  62. if(window.location.href.includes("https://autofaucet.dutchycorp.space/roll.php")){
  63.  
  64.  
  65. if(!document.querySelector("#timer")){
  66. setInterval(function(){
  67.  
  68. if (isCaptchaChecked()) {
  69. if (document.querySelector(".boost-btn.unlockbutton") && dutchRoll === false) {
  70. document.querySelector(".boost-btn.unlockbutton").click();
  71. dutchRoll = true;
  72. }
  73.  
  74. if(visibleCheck(document.querySelector("#claim_boosted"))){
  75. document.querySelector("#claim_boosted").click();
  76. }
  77. }
  78. }, 5000)
  79. }else{
  80. setTimeout(function(){
  81. window.location.replace("https://autofaucet.dutchycorp.space/coin_roll.php")
  82. },5000)
  83. }
  84.  
  85. }
  86.  
  87. if(window.location.href.includes("https://autofaucet.dutchycorp.space/coin_roll.php")){
  88.  
  89. if(!document.querySelector("#timer")){
  90. setInterval(function(){
  91.  
  92. if (isCaptchaChecked()) {
  93. if (document.querySelector(".boost-btn.unlockbutton") && dutchRoll === false) {
  94. document.querySelector(".boost-btn.unlockbutton").click();
  95. dutchRoll = true;
  96. }
  97.  
  98. if(visibleCheck(document.querySelector("#claim_boosted"))){
  99. document.querySelector("#claim_boosted").click();
  100. }
  101. }
  102. }, 5000)
  103. }else{
  104. setTimeout(function(){
  105. window.location.replace("https://autofaucet.dutchycorp.space/your_balance.php")
  106. },5000)
  107. }
  108. }
  109. if(window.location.href.includes("https://autofaucet.dutchycorp.space/your_balance.php")){
  110. setTimeout(function(){
  111. window.location.replace("https://autofaucet.dutchycorp.space/coin_roll.php")
  112. },60*30000)
  113. }
  114.  
  115. if(window.location.href.includes("https://autofaucet.dutchycorp.space/ptc/wall.php")){
  116. var wallLink = document.querySelectorAll(".col.s10.m6.l4 a[name='claim']");
  117.  
  118. if(wallLink.length >= 1){
  119. wallLink[0].style.backgroundColor = "red";
  120.  
  121. let match = wallLink[0].onmousedown.toString().match(/'href', '(.+)'/);
  122. let hrefValue = match[1];
  123.  
  124. setTimeout(function(){
  125. window.location.replace("https://autofaucet.dutchycorp.space" + hrefValue)
  126. },5000)
  127.  
  128. }
  129. }
  130.  
  131. if(window.location.href.includes("https://autofaucet.dutchycorp.space/ptc/view.php")){
  132.  
  133. console.log('viewing ptc');
  134.  
  135. setInterval(function(){
  136. if(visibleCheck(document.querySelector("#submit_captcha"))){
  137.  
  138. document.querySelector("button[type='submit'].g-recaptcha").click();
  139.  
  140.  
  141. // var oldfunction = unsafeWindow.open;
  142. // var windowName = "";
  143.  
  144. // function newFunction(params1, params2) {
  145.  
  146. // console.log(params1 + params2);
  147. // if (!params2 || params2 == "_blank") {
  148. // windowName = "popUpWindow";
  149. // } else {
  150. // windowName = params2;
  151. // }
  152.  
  153. // console.log("WindowName is::" + windowName);
  154.  
  155. // return oldfunction(params1, windowName);
  156. // };
  157.  
  158. // unsafeWindow.open = newFunction;
  159.  
  160. // unsafeWindow.onbeforeunload = function() {
  161. // unsafeWindow.open('', windowName).close();
  162. // };
  163.  
  164.  
  165. // if (isCaptchaChecked()) {
  166. // unsafeWindow.open('', windowName).close();
  167. // }
  168.  
  169.  
  170. }else{
  171. console.log('not found')
  172. }
  173. }, 10000)
  174. }
  175.  
  176. if(window.location.href === "https://autofaucet.dutchycorp.space/ptc/"){
  177.  
  178. console.log('viewing ptc');
  179.  
  180. setInterval(function(){
  181. if(visibleCheck(document.querySelector("#submit_captcha"))){
  182. document.querySelector("button[type='submit'].g-recaptcha").click();
  183. }else{
  184. console.log('not found')
  185. }
  186. }, 10000)
  187. }
  188.  
  189. })();