Simple html numeric captcha solver

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

As of 2016-01-13. See the latest version.

  1. // ==UserScript==
  2. // @name Simple html numeric captcha solver
  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. // @include http://hulkload.com/*
  8. // @include http://up4.im/*
  9. // @include http://www.gboxes.com/*
  10. // @include http://mrfile.co/*.html
  11. // @include http://fileshd.net/*
  12. // @include http://nizfile.net/*.html
  13. // @version 1.0.7
  14. // @author wOxxOm
  15. // @namespace wOxxOm.scripts
  16. // @license MIT License
  17. // @grant none
  18. // @run-at document-end
  19. // ==/UserScript==
  20.  
  21. var x = document.evaluate('//form//div/span[contains("0123456789",.)]', document,
  22. null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
  23. var btn = document.querySelector('[id*="btn"][id*="download"]');
  24. if (x && btn) {
  25. var nodes = [];
  26. for (i = 0; i < 4; i++)
  27. nodes.push(x.snapshotItem(i));
  28. var nodes = nodes.sort(function(a,b){ return parseInt(a.style.paddingLeft) - parseInt(b.style.paddingLeft) });
  29. document.forms.F1.code.value = nodes.map(function(n){ return n.textContent }).join('');
  30.  
  31. if (location.href.indexOf('clicknupload.com') >= 0)
  32. document.forms.F1.submit();
  33. else
  34. new MutationObserver(function(mutations) {
  35. if (!btn.disabled)
  36. document.forms.F1.submit();
  37. }).observe(btn, {attributes:true, attributesFilter:['disabled']});
  38. }