From b49e110cc831fd13c591cb64aafcb813b65e618d Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 19 Jan 2012 22:21:36 +0100 Subject: [PATCH] Whoops. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 697732903..390432caa 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3025,7 +3025,7 @@ thumb = this.previousSibling; imgExpand.contract(thumb); src = href.split('/'); - if (src[2] === 'images.4chan.org' && (url = redirect.image(src[3], src[5]))) { + if (this.src.split('/')[2] === 'images.4chan.org' && (url = redirect.image(src[3], src[5]))) { setTimeout(imgExpand.expand, 10000, thumb, url); return; } diff --git a/script.coffee b/script.coffee index 3eaf57b90..8200e5902 100644 --- a/script.coffee +++ b/script.coffee @@ -2342,7 +2342,7 @@ imgExpand = thumb = @previousSibling imgExpand.contract thumb src = href.split '/' - if src[2] is 'images.4chan.org' and url = redirect.image src[3], src[5] + if @src.split('/')[2] is 'images.4chan.org' and url = redirect.image src[3], src[5] setTimeout imgExpand.expand, 10000, thumb, url return url = href + '?' + Date.now()