diff --git a/4chan_x.js b/4chan_x.js
index bb45f30b4..62138fa3a 100644
--- a/4chan_x.js
+++ b/4chan_x.js
@@ -1142,13 +1142,18 @@
},
dialog: function(link) {
var clone, dialog, el, html, resto, script, xpath, _i, _len, _ref;
- html = "
";
+ html = " ";
dialog = ui.dialog('qr', {
top: '0px',
left: '0px'
}, html);
el = $('input[title=autohide]', dialog);
$.bind(el, 'click', qr.cb.autohide);
+ clone = $('#recaptcha_widget_div').cloneNode(true);
+ $.append($('#qr_captcha', dialog), clone);
+ $('input[name=recaptcha_response_field]', clone).placeholder = 'verification';
+ $.append(d.body, dialog);
+ return;
clone = $('form[name=post]').cloneNode(true);
_ref = $$('script', clone);
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
@@ -2278,11 +2283,19 @@
#qr > div.move {\
text-align: right;\
}\
- #qr > form > div, /* ad */\
- #qr #recaptcha_table td:nth-of-type(3), /* captcha logos */\
- #qr td.rules {\
+ #qr #recaptcha_table td:nth-of-type(3) {/* captcha logos */\
display: none;\
}\
+ #qr textarea {\
+ width: 300px;\
+ height: 100px;\
+ }\
+ #qr form {\
+ margin: 0px;\
+ }\
+ #qr * {\
+ padding: 0px !important;\
+ }\
#qr.auto:not(:hover) form {\
display: none;\
}\
diff --git a/script.coffee b/script.coffee
index d9669e50f..a1dc8b46a 100644
--- a/script.coffee
+++ b/script.coffee
@@ -875,11 +875,29 @@ qr =
clearInterval qr.cooldownIntervalID
dialog: (link) ->
- html = ""
+ html = "
+
+
+ "
dialog = ui.dialog 'qr', top: '0px', left: '0px', html
el = $ 'input[title=autohide]', dialog
$.bind el, 'click', qr.cb.autohide
+ clone = $('#recaptcha_widget_div').cloneNode(true)
+ $.append $('#qr_captcha', dialog), clone
+ $('input[name=recaptcha_response_field]', clone).placeholder = 'verification'
+
+ $.append d.body, dialog
+ return
+
clone = $('form[name=post]').cloneNode(true)
for script in $$ 'script', clone
$.remove script
@@ -1789,11 +1807,19 @@ main =
#qr > div.move {
text-align: right;
}
- #qr > form > div, /* ad */
- #qr #recaptcha_table td:nth-of-type(3), /* captcha logos */
- #qr td.rules {
+ #qr #recaptcha_table td:nth-of-type(3) {/* captcha logos */
display: none;
}
+ #qr textarea {
+ width: 300px;
+ height: 100px;
+ }
+ #qr form {
+ margin: 0px;
+ }
+ #qr * {
+ padding: 0px !important;
+ }
#qr.auto:not(:hover) form {
display: none;
}