diff --git a/4chan_x.user.js b/4chan_x.user.js index 9c02de00e..afb84620d 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -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)) { diff --git a/script.coffee b/script.coffee index 1aef56b56..f60468d3d 100644 --- a/script.coffee +++ b/script.coffee @@ -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()