From e0cbad5fc934f0771ef4462944a7bb0daf3e4afc Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 16 May 2011 00:11:29 -0700 Subject: [PATCH] no captcha buttons --- 4chan_x.js | 24 ++++-------------------- script.coffee | 29 ++++------------------------- 2 files changed, 8 insertions(+), 45 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index bc380860d..6419d952c 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1147,7 +1147,7 @@ name = $('input[name=name]').value; mail = $('input[name=email]').value; pass = $('input[name=pwd]').value; - html = "
Quick Reply X
"; + html = "
Quick Reply X
"; dialog = ui.dialog('qr', { top: '0px', left: '0px' @@ -2051,8 +2051,8 @@ } return _results; } else if (target.id === 'recaptcha_challenge_field' && (dialog = $('#qr'))) { - $('#recaptcha_image img', dialog).src = "http://www.google.com/recaptcha/api/image?c=" + target.value; - return $('#recaptcha_challenge_field', dialog).value = target.value; + $('img', dialog).src = "http://www.google.com/recaptcha/api/image?c=" + target.value; + return $('input[name=recaptcha_challenge_field]', dialog).value = target.value; } }; imageHover = { @@ -2544,25 +2544,9 @@ color: grey;\ }\ /* qr reCAPTCHA */\ - #qr_captcha {\ + #qr img {\ border: 1px solid #AAA;\ }\ - #qr_imgs {\ - position: relative;\ - }\ - .qr_captcha_btn {\ - position: absolute;\ - right: 1px;\ - }\ - a.qr_captcha_btn#recaptcha_reload_btn {\ - top: 1px;\ - }\ - a.qr_captcha_btn#recaptcha_switch_audio_btn {\ - top: 21px;\ - }\ - a.qr_captcha_btn#recaptcha_whatsthis_btn {\ - bottom: 3px;\ - }\ \ #updater {\ position: fixed;\ diff --git a/script.coffee b/script.coffee index 172a10d2e..f88d2418c 100644 --- a/script.coffee +++ b/script.coffee @@ -917,12 +917,7 @@ qr =
-
- - - - -
+
@@ -1597,8 +1592,8 @@ nodeInserted = (e) -> for callback in g.callbacks callback target else if target.id is 'recaptcha_challenge_field' and dialog = $ '#qr' - $('#recaptcha_image img', dialog).src = "http://www.google.com/recaptcha/api/image?c=" + target.value - $('#recaptcha_challenge_field', dialog).value = target.value + $('img', dialog).src = "http://www.google.com/recaptcha/api/image?c=" + target.value + $('input[name=recaptcha_challenge_field]', dialog).value = target.value imageHover = init: -> @@ -2015,25 +2010,9 @@ main = color: grey; } /* qr reCAPTCHA */ - #qr_captcha { + #qr img { border: 1px solid #AAA; } - #qr_imgs { - position: relative; - } - .qr_captcha_btn { - position: absolute; - right: 1px; - } - a.qr_captcha_btn#recaptcha_reload_btn { - top: 1px; - } - a.qr_captcha_btn#recaptcha_switch_audio_btn { - top: 21px; - } - a.qr_captcha_btn#recaptcha_whatsthis_btn { - bottom: 3px; - } #updater { position: fixed;