Dutchycorp Script Coin roll + PTC Support

Free Dutchycorp rolls

目前为 2023-01-16 提交的版本。查看 最新版本

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