From dc7994c9bae8057dda4748dc1d3e2dbb94f78ece Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 1 Feb 2012 20:00:59 +0100 Subject: [PATCH] Typo. --- 4chan_x.user.js | 2 +- script.coffee | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index b658f197e..3510dd9a5 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3329,7 +3329,7 @@ url = href + '?' + Date.now(); } timeoutID = setTimeout(imgExpand.expand, 10000, thumb, url); - if (!(engine === 'webkit' && url.split('/')[2] === 'image.4chan.org')) { + if (!(engine === 'webkit' && url.split('/')[2] === 'images.4chan.org')) { return; } return $.ajax(url, { diff --git a/script.coffee b/script.coffee index 9fe744f2d..e213ee7e9 100644 --- a/script.coffee +++ b/script.coffee @@ -1405,7 +1405,7 @@ qr = for name, val of data parts.push 'Content-Disposition: form-data; name="' + name + '"\r\n\r\n' + val + '\r\n' if val - form = '--' + boundary + '\r\n' + parts.join('--' + boundary + '\r\n') + '--' + boundary + '--\r\n'; + form = '--' + boundary + '\r\n' + parts.join('--' + boundary + '\r\n') + '--' + boundary + '--\r\n' else form = new FormData() @@ -2554,7 +2554,7 @@ imgExpand = timeoutID = setTimeout imgExpand.expand, 10000, thumb, url # Only Chrome let userscript break through cross domain requests. # Don't check it 404s in the archivers. - return unless engine is 'webkit' and url.split('/')[2] is 'image.4chan.org' + return unless engine is 'webkit' and url.split('/')[2] is 'images.4chan.org' $.ajax url, onreadystatechange: (-> clearTimeout timeoutID if @status is 404), type: 'head'