SHOW:
|
|
- or go back to the newest paste.
1 | // ==UserScript== | |
2 | // @name a | |
3 | // @name:ja a | |
4 | // @namespace http://hogehoge/ | |
5 | - | // @version 1.0.0 |
5 | + | // @version 1.1.0 |
6 | // @description b | |
7 | // @description:ja b | |
8 | // @author H. Amami | |
9 | // @include http://urle.co/* | |
10 | // @grant none | |
11 | // @run-at document-ready | |
12 | // ==/UserScript== | |
13 | ||
14 | captchaCheckAdblockUser = function() {}; | |
15 | - | onloadRecaptchaCallback = function() { |
15 | + | function a() { |
16 | - | if (app_vars['captcha_type'] === 'recaptcha') { |
16 | + | if (grecaptcha.getResponse(0) !== "") { |
17 | - | if ($('#captchaShortlink').length) { |
17 | + | document.getElementById("link-view").submit(); |
18 | - | captchaShortlink = grecaptcha.render('captchaShortlink', { |
18 | + | clearInterval(b); |
19 | - | 'sitekey': app_vars['reCAPTCHA_site_key'], |
19 | + | |
20 | - | 'callback': function(response) { |
20 | + | } |
21 | - | $('#link-view').submit(); |
21 | + | var b = setInterval(a, 500); |
22 | - | } |
22 | + | // 仕様が変更されたら http://urle.co/js/app.js を参考にsubmit()の部分を追加する |