Greasy Fork is available in English.

uploadev.org Captcha Solver

Automatically download from uploadev.org free

  1. // ==UserScript==
  2. // @name uploadev.org Captcha Solver
  3. // @description Automatically download from uploadev.org free
  4. // @namespace openuserjs.org/users/cuzi
  5. // @version 1
  6. // @copyright 2019, cuzi (https://openuserjs.org/users/cuzi)
  7. // @license MIT
  8. // @include https://uploadev.org/*
  9. // @grant unsafeWindow
  10. // ==/UserScript==
  11.  
  12. /* globals unsafeWindow */
  13.  
  14. unsafeWindow.open = () => true
  15. unsafeWindow.popup = () => true
  16.  
  17. var iv0 = window.setInterval(function () {
  18. if (document.querySelector('.capcha td span')) {
  19. window.clearInterval(iv0)
  20. Array.from(document.querySelectorAll('.capcha td span')).sort((a, b) => parseInt(a.style.paddingLeft) > parseInt(b.style.paddingLeft)).forEach((e) => document.querySelector('.captcha_code').value += e.textContent.trim())
  21. }
  22. }, 700)
  23.  
  24. window.setTimeout(function () {
  25. var iv1 = window.setInterval(function () {
  26. const cd = document.getElementById('countdown')
  27. if (cd && cd.style && cd.style.display === 'none') {
  28. window.clearInterval(iv1)
  29. document.getElementById('downloadbtn').click()
  30. }
  31. }, 700)
  32. }, 15000)
  33.  
  34. if (document.querySelector('#dspeed [name=method_free]')) {
  35. document.querySelector('#dspeed [name=method_free]').click()
  36. }
  37.  
  38. window.setTimeout(function () {
  39. if (document.querySelector('#direct_link a')) {
  40. document.querySelector('#direct_link a').click()
  41. }
  42. }, 1000)