Greasy Fork is available in English.

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

Versione datata 09/09/2015. Vedi la nuova versione l'ultima versione.

  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. // @version 1.0.4
  11. // @author wOxxOm
  12. // @namespace wOxxOm.scripts
  13. // @license MIT License
  14. // @grant none
  15. // @run-at document-start
  16. // ==/UserScript==
  17.  
  18. document.addEventListener('DOMContentLoaded', function() {
  19. var x = document.evaluate('//form//div/span[contains("0123456789",.)]', document,
  20. null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
  21. var btn = document.getElementById('btn_download');
  22. if (x && btn) {
  23. var nodes = [];
  24. for (i = 0; i < 4; i++)
  25. nodes.push(x.snapshotItem(i));
  26. var nodes = nodes.sort(function(a,b){ return parseInt(a.style.paddingLeft) - parseInt(b.style.paddingLeft) });
  27. document.forms.F1.code.value = nodes.map(function(n){ return n.textContent }).join('');
  28.  
  29. if (location.href.indexOf('clicknupload.com') >= 0)
  30. document.forms.F1.submit();
  31. else
  32. new MutationObserver(function(mutations) {
  33. if (!btn.disabled)
  34. document.forms.F1.submit();
  35. }).observe(btn, {attributes:true, attributesFilter:['disabled']});
  36. }
  37. });