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() {
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')) {
$.bind(recaptcha, 'keydown', Recaptcha.listener);
return;
@ -1518,10 +1518,10 @@
}
return parent.postMessage(data, '*');
});
if (!((c = (_ref = $('b')) != null ? _ref.lastChild : void 0) && c.nodeType === 8)) {
if (!(d = $('b').lastChild.data)) {
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;
cooldown = /cooldown/.test(search);
noko = /noko/.test(search);

View File

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