rziz, up09, clicknupload captcha

After you click "Slow download" button the script solves the numeric captcha, waits for the countdown to finish, clicks the download button

当前为 2015-06-29 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name rziz, up09, clicknupload captcha
  3. // @description After you click "Slow download" button the script solves the numeric captcha, waits for the countdown to finish, clicks the download button
  4. // @include http://www.rziz.net/*/*.html
  5. // @include http://file.up09.com/*
  6. // @include http://clicknupload.com/*
  7. // @version 1.0.2
  8. // @author wOxxOm
  9. // @namespace wOxxOm.scripts
  10. // @license MIT License
  11. // @grant none
  12. // @run-at document-start
  13. // ==/UserScript==
  14.  
  15. document.addEventListener('DOMContentLoaded', function() {
  16. var x = document.evaluate('//form//div/span[contains("0123456789",.)]', document,
  17. null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
  18. var btn = document.getElementById('btn_download');
  19. if (x && btn) {
  20. var nodes = [];
  21. for (i = 0; i < 4; i++)
  22. nodes.push(x.snapshotItem(i));
  23. var nodes = nodes.sort(function(a,b){ return parseInt(a.style.paddingLeft) - parseInt(b.style.paddingLeft) });
  24. document.forms.F1.code.value = nodes.map(function(n){ return n.textContent }).join('');
  25.  
  26. if (location.href.indexOf('clicknupload.com') >= 0)
  27. document.forms.F1.submit();
  28. else
  29. new MutationObserver(function(mutations) {
  30. if (!btn.disabled)
  31. document.forms.F1.submit();
  32. }).observe(btn, {attributes:true, attributesFilter:['disabled']});
  33. }
  34. });

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址