Free drops from dropz.xyz

free roller for dropz.xyz

  1. // ==UserScript==
  2. // @name Free drops from dropz.xyz
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description free roller for dropz.xyz
  6. // @author elmer76
  7. // @license MIT
  8. // @description coin
  9. // @include https://my.dropz.xyz/site-friends
  10. // @grant none
  11. // ==/UserScript==
  12. /*
  13. ================================================================================================================================================== |
  14. | donate please btc : 36v6NbQCeDp1LHDtpJgoBMq7u3J5zWipDW TY and enjoy |
  15. | Please use my referal link https://freecrypto.site/769744 |
  16. ==================================================================================================================================================
  17. */
  18.  
  19. var autoClick = true;
  20. var autoScroll = true;
  21. var autoWithdraw = true;
  22. var minpay=800;
  23. var useFetch = true;
  24. var idButton = '';
  25. var countSubmitCaptcha =0;
  26. var countCaptcha = 0;
  27. var openNewWindow = false;
  28. var timeWaitNextAd = 1000;
  29.  
  30. var countSameTitle = 0;
  31. var lastTitle = '';
  32. var checkSameTitle = true;
  33. var MAX_SAME_TITLE = 60;
  34.  
  35. function reloadWindow(){
  36. setTimeout(function(){window.location=window.location;},timeWaitNextAd);
  37. }
  38. setInterval(function(){
  39. if(document.getElementsByName('h-captcha-response').length > 0){
  40. var captchaResponse = document.getElementsByName('h-captcha-response')[0].value;
  41. if(captchaResponse != '') {
  42. document.title='Dropz submit captcha ';
  43. $.post("/api/ex/solve-captcha.php", { "h-captcha-response" : captchaResponse, },function(data,status){
  44. console.log('success', data);
  45. }) .done(function() {
  46. console.log( "second success" );
  47. })
  48. .fail(function() {
  49. console.log( "error" );
  50. })
  51. .always(function() {
  52. console.log( "finished" );
  53. document.getElementsByName('h-captcha-response')[0].value = '';
  54. reloadWindow();
  55. });;
  56. // if(document.getElementsByClassName('btn btn-info btn-sm mt-3 mb-4').length > 0)
  57. // document.getElementsByClassName('btn btn-info btn-sm mt-3 mb-4')[0].click();
  58.  
  59. }else{
  60. document.title='Dropz captcha ';
  61. }
  62. }else{
  63. if(document.getElementsByClassName('btn btn-info btn-sm mt-3 mb-4').length > 0){
  64. if(autoClick)
  65. {
  66. var buttonSubmit = document.getElementsByClassName('btn btn-info btn-sm mt-3 mb-4')[0];
  67. if(buttonSubmit.innerText.indexOf('Website') >-1 ){
  68. var curIdButton = buttonSubmit.getAttribute('id')+ buttonSubmit.innerText;
  69. if(curIdButton != idButton || buttonSubmit.innerText == 'Visit Website'){
  70. var fclick = buttonSubmit.getAttribute('onclick');
  71. if(fclick.indexOf(';') >-1) {
  72. buttonSubmit.setAttribute('onclick', fclick.split(';')[1]);
  73. }
  74. var ref = '';
  75. try{
  76. ref = eval(buttonSubmit.id).toString().split('ref=')[1].split('"')[0];
  77. }catch(e){
  78. }
  79. if(!openNewWindow){
  80. openNewWindow = true;
  81. document.title='Dropz Please wait ' + document.getElementById('pts_lbl').innerText;
  82. if(useFetch){
  83. var urlFetch = 'redir/index.php?ref=' + ref;
  84. fetch(urlFetch).then(()=>{
  85. reloadWindow();
  86. }).catch(()=>{
  87. reloadWindow();
  88. });
  89. }else{
  90. window.open('redir/index.php?ref=' + ref, '_blank');
  91. reloadWindow();
  92. }
  93. if(autoWithdraw){
  94. if(document.getElementById('balance_lbl')){
  95. var bl = document.getElementById('balance_lbl').innerText.split('.')[0].replace(',','');
  96. if(bl>minpay){
  97. fetch('https://my.dropz.xyz/api/ex/payout.php',{method:'POST'}).then(()=>{
  98. }).catch(()=>{
  99. });
  100. }
  101. }
  102. }
  103. }
  104. //buttonSubmit.click();
  105. idButton = curIdButton;
  106. }
  107. }
  108. }
  109. }
  110. }
  111. },5000);
  112.  
  113. setInterval(function(){
  114. if(autoScroll){
  115. if(document.getElementsByClassName('btn btn-info btn-sm mt-3 mb-4').length > 0){
  116. document.getElementsByClassName('horizontal-menu')[0].style.display='none';
  117. document.getElementById('payout').scrollIntoView();
  118. }
  119. }
  120. }
  121. ,2000);
  122.  
  123. setInterval(function(){
  124. if(document.title === 'Dropz captcha ') return;
  125. if(checkSameTitle){
  126. var currentTitle = document.title;
  127. if(lastTitle == currentTitle){
  128. countSameTitle++;
  129. console.log('sameTitle',countSameTitle);
  130. if(countSameTitle > MAX_SAME_TITLE){
  131. countSameTitle = 0;
  132. reloadWindow();
  133. }
  134. }else{
  135. countSameTitle = 0;
  136. lastTitle = currentTitle;
  137. }
  138. }
  139. },5000);