dropz others

try

目前为 2024-12-17 提交的版本,查看 最新版本

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