This commit is contained in:
James Campos 2011-09-02 18:54:54 -07:00
parent 0b9b948f1d
commit 71075d4c12
2 changed files with 5 additions and 5 deletions

View File

@ -1349,7 +1349,7 @@
},
sys: function() {
return $.globalEval(function() {
var data, href, location, node, textContent, _ref;
var data, href, node, textContent, _ref;
if (node = (_ref = document.querySelector('table font b')) != null ? _ref.firstChild : void 0) {
textContent = node.textContent, href = node.href;
data = JSON.stringify({
@ -1358,7 +1358,7 @@
});
}
parent.postMessage(data, '*');
return location = 'about:blank';
return window.location = 'about:blank';
});
}
};
@ -2919,7 +2919,7 @@
g.PAGENUM = parseInt(temp) || 0;
}
if (location.hostname === 'sys.4chan.org') {
qr.sys();
QR.sys();
return;
}
if (conf['404 Redirect'] && d.title === '4chan - 404' && /^\d+$/.test(g.THREAD_ID)) {

View File

@ -1068,7 +1068,7 @@ QR =
{textContent, href} = node
data = JSON.stringify {textContent, href}
parent.postMessage data, '*'
location = 'about:blank'
window.location = 'about:blank'
qr =
# TODO
@ -2288,7 +2288,7 @@ main =
g.PAGENUM = parseInt(temp) or 0
if location.hostname is 'sys.4chan.org'
qr.sys()
QR.sys()
return
if conf['404 Redirect'] and d.title is '4chan - 404' and /^\d+$/.test g.THREAD_ID
redirect()