-
- "
- #XXX use dom methods to set values instead of injecting raw user input into your html -_-;
- $('[name=pwd]', qr).value = if m = c.match(/4chan_pass=([^;]+)/) then decodeURIComponent m[1] else $('input[name=pwd]').value
- $.bind $('#attach', qr), 'click', QR.attach
- */
QR.qr = qr = ui.dialog('qr', {
top: '0',
left: '0'
- }, " X
-
- "
- #XXX use dom methods to set values instead of injecting raw user input into your html -_-;
- $('[name=pwd]', qr).value = if m = c.match(/4chan_pass=([^;]+)/) then decodeURIComponent m[1] else $('input[name=pwd]').value
- $.bind $('#attach', qr), 'click', QR.attach
- ###
QR.qr = qr = ui.dialog 'qr', top: '0', left: '0', "
X
- Subject
- Name
- Email
+ Subject
+ Name
+ Email
+ Password
"
+ #$.bind $('#attach', qr), 'click', QR.attach
+ #XXX use dom methods to set values instead of injecting raw user input into your html -_-;
c = d.cookie
$('[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
$('textarea', qr).value = text
QR.cooldown() if conf['Cooldown']
$.bind $('button', qr), 'click', -> $('[type=file]', qr).click()