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. });