From 949ce029843a465547b0c99a7c781bf4dc0d01e6 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sun, 13 Nov 2011 10:50:13 -0800 Subject: [PATCH] fix sauce --- 4chan_x.user.js | 3 ++- script.coffee | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 8c707cc43..877bb6f3a 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2116,8 +2116,9 @@ return prefix.match(/(\w+)\./)[1]; }); return g.callbacks.push(function(root) { - var i, link, prefix, suffix, thumb, _len, _ref, _results; + var i, link, prefix, span, suffix, thumb, _len, _ref, _results; if (root.className === 'inline' || !(thumb = $('img[md5]', root))) return; + span = $('.filesize', root); suffix = thumb.src; _ref = sauce.prefixes; _results = []; diff --git a/script.coffee b/script.coffee index 62f1e8fd1..f6b2ffd5e 100644 --- a/script.coffee +++ b/script.coffee @@ -1651,6 +1651,7 @@ sauce = sauce.names = sauce.prefixes.map (prefix) -> prefix.match(/(\w+)\./)[1] g.callbacks.push (root) -> return if root.className is 'inline' or not thumb = $ 'img[md5]', root + span = $ '.filesize', root suffix = thumb.src for prefix, i in sauce.prefixes link = $.el 'a',