Automatic Clicker for reCAPTCHA of URL Shortener

This script is not resolver, only can click.

当前为 2017-03-19 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Automatic Clicker for reCAPTCHA of URL Shortener
  3. // @namespace http://hogehoge/
  4. // @version 1.9
  5. // @description This script is not resolver, only can click.
  6. // @author H. Amami
  7. // @match *://www.google.com/recaptcha/api2/anchor?*
  8. // @grant none
  9. // @run-at document-end
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. var check = function(ref) {
  15. //You can add domain(s) if you want.
  16. var domains = ["fas.li", "ouo.io", "ouo.press", "shink.in", "al.ly", "coinlink.co", "uploadbank.com", "croco.site", "urlst.me", "cpmlink.net", "ally.sh", "elde.me"];
  17. for (var domain of domains) {
  18. if (~ref.indexOf(domain + "/")) return true;
  19. }
  20. return false;
  21. };
  22. if (check(document.referrer)) {
  23. var hoge = function() {
  24. document.getElementById("recaptcha-anchor").click();
  25. };
  26. setTimeout(hoge, 0);
  27. console.info("Automatic click of reCAPTCHA has been executed");
  28. }
  29. })();