diff --git a/4chan_x.user.js b/4chan_x.user.js
index af9f135f2..9ff1c0359 100644
--- a/4chan_x.user.js
+++ b/4chan_x.user.js
@@ -1367,9 +1367,9 @@
left: '0'
}, " X
Quick Reply
");
c = d.cookie;
- $('[name=name]', el).value = (m = c.match(/4chan_name=([^;]+)/)) ? decodeURIComponent(m[1]) : '';
- $('[name=email]', el).value = (m = c.match(/4chan_email=([^;]+)/)) ? decodeURIComponent(m[1]) : '';
- $('[name=pwd]', el).value = (m = c.match(/4chan_pass=([^;]+)/)) ? decodeURIComponent(m[1]) : $('input[name=pwd]').value;
+ $('[name=name]', qr).value = (m = c.match(/4chan_name=([^;]+)/)) ? decodeURIComponent(m[1]) : '';
+ $('[name=email]', qr).value = (m = c.match(/4chan_email=([^;]+)/)) ? decodeURIComponent(m[1]) : '';
+ $('[name=pwd]', qr).value = (m = c.match(/4chan_pass=([^;]+)/)) ? decodeURIComponent(m[1]) : $('input[name=pwd]').value;
if (conf['Cooldown']) {
QR.cooldown;
}
diff --git a/script.coffee b/script.coffee
index 6a775ec7d..54d887315 100644
--- a/script.coffee
+++ b/script.coffee
@@ -1076,9 +1076,9 @@ QR =
"
#XXX use dom methods to set values instead of injecting raw user input into your html -_-;
c = d.cookie
- $('[name=name]', el).value = if m = c.match(/4chan_name=([^;]+)/) then decodeURIComponent m[1] else ''
- $('[name=email]', el).value = if m = c.match(/4chan_email=([^;]+)/) then decodeURIComponent m[1] else ''
- $('[name=pwd]', el).value = if m = c.match(/4chan_pass=([^;]+)/) then decodeURIComponent m[1] else $('input[name=pwd]').value
+ $('[name=name]', qr).value = if m = c.match(/4chan_name=([^;]+)/) then decodeURIComponent m[1] else ''
+ $('[name=email]', qr).value = if m = c.match(/4chan_email=([^;]+)/) then decodeURIComponent m[1] else ''
+ $('[name=pwd]', qr).value = if m = c.match(/4chan_pass=([^;]+)/) then decodeURIComponent m[1] else $('input[name=pwd]').value
QR.cooldown if conf['Cooldown']
$.bind $('.close', qr), 'click', QR.close
$.bind $('form', qr), 'submit', QR.submit