uploadev.org Captcha Solver

Automatically download from uploadev.org free

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        uploadev.org Captcha Solver
// @description Automatically download from uploadev.org free
// @namespace   openuserjs.org/users/cuzi
// @version     1
// @copyright   2019, cuzi (https://openuserjs.org/users/cuzi)
// @license     MIT
// @include     https://uploadev.org/*
// @grant       unsafeWindow
// ==/UserScript==

/* globals unsafeWindow */

unsafeWindow.open = () => true
unsafeWindow.popup = () => true

var iv0 = window.setInterval(function () {
  if (document.querySelector('.capcha td span')) {
    window.clearInterval(iv0)
    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())
  }
}, 700)

window.setTimeout(function () {
  var iv1 = window.setInterval(function () {
    const cd = document.getElementById('countdown')
    if (cd && cd.style && cd.style.display === 'none') {
      window.clearInterval(iv1)
      document.getElementById('downloadbtn').click()
    }
  }, 700)
}, 15000)

if (document.querySelector('#dspeed [name=method_free]')) {
  document.querySelector('#dspeed [name=method_free]').click()
}

window.setTimeout(function () {
  if (document.querySelector('#direct_link a')) {
    document.querySelector('#direct_link a').click()
  }
}, 1000)