This commit is contained in:
James Campos 2011-09-03 14:48:43 -07:00
parent 3e24845afb
commit d60d214f1b
2 changed files with 5 additions and 5 deletions

View File

@ -1502,7 +1502,7 @@
} }
}, },
sys: function() { sys: function() {
var c, duration, id, noko, recaptcha, sage, search, thread, url, watch, _, _ref, _ref2; var duration, id, noko, recaptcha, sage, search, thread, url, watch, _, _ref;
if (recaptcha = $('#recaptcha_response_field')) { if (recaptcha = $('#recaptcha_response_field')) {
$.bind(recaptcha, 'keydown', Recaptcha.listener); $.bind(recaptcha, 'keydown', Recaptcha.listener);
return; return;
@ -1518,10 +1518,10 @@
} }
return parent.postMessage(data, '*'); return parent.postMessage(data, '*');
}); });
if (!((c = (_ref = $('b')) != null ? _ref.lastChild : void 0) && c.nodeType === 8)) { if (!(d = $('b').lastChild.data)) {
return; return;
} }
_ref2 = c.textContent.match(/thread:(\d+),no:(\d+)/), _ = _ref2[0], thread = _ref2[1], id = _ref2[2]; _ref = d.match(/thread:(\d+),no:(\d+)/), _ = _ref[0], thread = _ref[1], id = _ref[2];
search = location.search; search = location.search;
cooldown = /cooldown/.test(search); cooldown = /cooldown/.test(search);
noko = /noko/.test(search); noko = /noko/.test(search);

View File

@ -1183,8 +1183,8 @@ QR =
{textContent, href} = node {textContent, href} = node
data = JSON.stringify {textContent, href} data = JSON.stringify {textContent, href}
parent.postMessage data, '*' parent.postMessage data, '*'
return unless (c = $('b')?.lastChild) and c.nodeType is 8 #comment node return unless d = $('b').lastChild.data #comment
[_, thread, id] = c.textContent.match(/thread:(\d+),no:(\d+)/) [_, thread, id] = d.match(/thread:(\d+),no:(\d+)/)
{search} = location {search} = location
cooldown = /cooldown/.test search cooldown = /cooldown/.test search
noko = /noko/ .test search noko = /noko/ .test search