Greasy Fork is available in English.

rziz.net captcha

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

2015-04-19 기준 버전입니다. 최신 버전을 확인하세요.

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