From 2af711f8af5d5954ee92a5668f78b61fedebc546 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Fri, 9 Dec 2011 20:40:46 +0100 Subject: [PATCH] Update comment. You can read the timeout in seconde in the recaptcha script/object. Unfortunately 4chan X cannot access it. --- 4chan_x.user.js | 4 ++-- script.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index e6fba4a2f..a3954dc4c 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1639,8 +1639,8 @@ content = $('textarea', qr.el).value || $('input[type=file]', qr.el).files.length; if (!content) return 'Error: No text entered.'; /* - captchas expire after 30 minutes (emperically verified). cutoff 5 minutes - before then, b/c posting takes time. + captchas expire after 30 minutes, see window.RecaptchaState.timeout. + cutoff 5 minutes before then, b/c posting takes time. */ cutoff = Date.now() - 25 * MINUTE; captchas = $.get('captchas', []); diff --git a/script.coffee b/script.coffee index 042cc7c7b..d2527122a 100644 --- a/script.coffee +++ b/script.coffee @@ -1274,8 +1274,8 @@ qr = return 'Error: No text entered.' unless content ### - captchas expire after 30 minutes (emperically verified). cutoff 5 minutes - before then, b/c posting takes time. + captchas expire after 30 minutes, see window.RecaptchaState.timeout. + cutoff 5 minutes before then, b/c posting takes time. ### cutoff = Date.now() - 25*MINUTE