dropz others

try

  1. // ==UserScript==
  2. // @name dropz others
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-12-17-000008
  5. // @description try
  6. // @author You
  7. // @match https://raketayo.dropz.xyz/member/t/captcha
  8. // @match https://raketayo.dropz.xyz/member/t/browse
  9. // @match https://raketayo.dropz.xyz/member/g/fruit*
  10. // @match https://googleads.g.doubleclick.net/*
  11. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  12. // @license MIT
  13. // ==/UserScript==
  14.  
  15. ( function() {
  16. 'use strict';
  17.  
  18. // Your code here...
  19.  
  20.  
  21. setInterval(()=>{
  22. clickOther();
  23. },200);
  24.  
  25. })();
  26.  
  27. var lastSubmit = new Date();
  28. function clickOther(){
  29. clickButton(".swal2-confirm");
  30. let captchaText = document.getElementById('captchaText');
  31. if(captchaText){
  32. if(captchaText.value.length == 6){
  33. let d1 = new Date();
  34. let diff = d1 - lastSubmit;
  35. if(diff > 6 * 1000) {
  36. clickButton('.btn-success');
  37. lastSubmit = new Date();
  38. }
  39. }else if(captchaText.value.length ==0){
  40. //captchaText.click();
  41. captchaText.dispatchEvent(new Event('input'));
  42. }
  43. captchaText.scrollIntoView();
  44. }
  45. //if(document.getElementById('butn')){
  46. // document.getElementById('butn').scrollIntoView();
  47. // }
  48. }
  49. function clickButton(xpath){
  50. var targetNode = document.querySelector(xpath);
  51. if (targetNode) {
  52. targetNode.click();
  53.  
  54. }
  55. else{
  56.  
  57. }
  58. }
  59.  
  60.