shink.inとかのreCAPTCHAを自動クリック

画像認識を自動処理するものではありません。使用は自己責任で。

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

  1. // ==UserScript==
  2. // @name shink.inとかのreCAPTCHAを自動クリック
  3. // @namespace http://hogehoge/
  4. // @version 1.4
  5. // @description 画像認識を自動処理するものではありません。使用は自己責任で。
  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. //対応ドメインを追加する場合は↓の行に追記する
  16. var domains = ["fas.li", "ouo.io", "ouo.press", "shink.in", "al.ly", "coinlink.co", "uploadbank.com", "short.am", "croco.site"];
  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("reCAPTCHAの自動クリックが実行されました");
  28. }
  29. })();