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

Pada tanggal 21 Mei 2017. Lihat %(latest_version_link).

  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. // @include http://lynxshare.com/*
  14. // @include http://datasbit.com/*
  15. // @include http://idup.to/*
  16. // @version 1.1.0
  17. // @author wOxxOm
  18. // @namespace wOxxOm.scripts
  19. // @license MIT License
  20. // @run-at document-end
  21. // ==/UserScript==
  22.  
  23. var x = document.evaluate('//form//div/span[contains("0123456789",.) and contains(@style,"padding-left")]', document,
  24. null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
  25. var btn = document.querySelector('[id*="btn"][id*="download"]');
  26. if (x && btn) {
  27. var nodes = [];
  28. for (i = 0; i < 4; i++)
  29. nodes.push(x.snapshotItem(i));
  30. var nodes = nodes.sort(function(a,b){ return parseInt(a.style.paddingLeft) - parseInt(b.style.paddingLeft) });
  31. document.forms.F1.code.value = nodes.map(function(n){ return n.textContent }).join('');
  32.  
  33. if (location.href.indexOf('clicknupload.com') >= 0)
  34. document.forms.F1.submit();
  35. else
  36. new MutationObserver(function(mutations) {
  37. if (!btn.disabled)
  38. document.forms.F1.submit();
  39. }).observe(btn, {attributes:true, attributesFilter:['disabled']});
  40. }