Dutchycorp Script Coin roll + PTC Support

Free Dutchycorp rolls

目前为 2023-01-15 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Dutchycorp Script Coin roll + PTC Support
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  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. if(!document.querySelector("#timer")){
  65. setInterval(function(){
  66.  
  67. if (isCaptchaChecked()) {
  68. if (document.querySelector(".boost-btn.unlockbutton") && dutchRoll === false) {
  69. document.querySelector(".boost-btn.unlockbutton").click();
  70. dutchRoll = true;
  71. }
  72.  
  73. if(visibleCheck(document.querySelector("#claim_boosted"))){
  74. document.querySelector("#claim_boosted").click();
  75. }
  76. }
  77. }, 5000)
  78. }else{
  79. window.location.replace("https://autofaucet.dutchycorp.space/coin_roll.php")
  80. }
  81. }
  82.  
  83. if(window.location.href.includes("https://autofaucet.dutchycorp.space/coin_roll.php")){
  84.  
  85. if(!document.querySelector("#timer")){
  86. setInterval(function(){
  87.  
  88. if (isCaptchaChecked()) {
  89. if (document.querySelector(".boost-btn.unlockbutton") && dutchRoll === false) {
  90. document.querySelector(".boost-btn.unlockbutton").click();
  91. dutchRoll = true;
  92. }
  93.  
  94. if(visibleCheck(document.querySelector("#claim_boosted"))){
  95. document.querySelector("#claim_boosted").click();
  96. }
  97. }
  98. }, 5000)
  99. }else{
  100. window.location.replace("https://autofaucet.dutchycorp.space/ptc/wall.php")
  101. }
  102. }
  103.  
  104. if(window.location.href.includes("https://autofaucet.dutchycorp.space/ptc/wall.php")){
  105. var wallLink = document.querySelectorAll(".col.s10.m6.l4 a[name='claim']");
  106.  
  107. if(wallLink.length >= 1){
  108. wallLink[0].style.backgroundColor = "red";
  109.  
  110. let match = wallLink[0].onmousedown.toString().match(/'href', '(.+)'/);
  111. let hrefValue = match[1];
  112.  
  113. setTimeout(function(){
  114. window.location.replace("https://autofaucet.dutchycorp.space" + hrefValue)
  115. },5000)
  116.  
  117. }
  118. }
  119.  
  120. if(window.location.href.includes("https://autofaucet.dutchycorp.space/ptc/view.php")){
  121.  
  122. console.log('viewing ptc');
  123.  
  124. setInterval(function(){
  125. if(visibleCheck(document.querySelector("#submit_captcha"))){
  126.  
  127. document.querySelector("button[type='submit'].g-recaptcha").click();
  128.  
  129.  
  130. // var oldfunction = unsafeWindow.open;
  131. // var windowName = "";
  132.  
  133. // function newFunction(params1, params2) {
  134.  
  135. // console.log(params1 + params2);
  136. // if (!params2 || params2 == "_blank") {
  137. // windowName = "popUpWindow";
  138. // } else {
  139. // windowName = params2;
  140. // }
  141.  
  142. // console.log("WindowName is::" + windowName);
  143.  
  144. // return oldfunction(params1, windowName);
  145. // };
  146.  
  147. // unsafeWindow.open = newFunction;
  148.  
  149. // unsafeWindow.onbeforeunload = function() {
  150. // unsafeWindow.open('', windowName).close();
  151. // };
  152.  
  153.  
  154. // if (isCaptchaChecked()) {
  155. // unsafeWindow.open('', windowName).close();
  156. // }
  157.  
  158.  
  159. }else{
  160. console.log('not found')
  161. }
  162. }, 5000)
  163. }
  164.  
  165. })();