From 51f7440b042cc25a0f9b7a392baa10ebcbfc1bfb Mon Sep 17 00:00:00 2001 From: No Face Date: Thu, 23 Feb 2012 23:40:39 +0100 Subject: [PATCH] That's better. --- 4chan_x.user.js | 6 +++--- script.coffee | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index a679ee75e..2cdba2ff1 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -895,14 +895,14 @@ return $.set("hiddenReplies/" + g.BOARD + "/", g.hiddenReplies); }, hideHide: function(reply) { - var div, name, table, trip, uid, _ref; + var div, name, table, trip, uid, _ref, _ref2; table = reply.parentNode.parentNode.parentNode; if (table.hidden) return; table.hidden = true; if (conf['Show Stubs']) { name = $('.commentpostername', reply).textContent; - uid = $('.posteruid', reply).textContent; - trip = ((_ref = $('.postertrip', reply)) != null ? _ref.textContent : void 0) || ''; + uid = ((_ref = $('.posteruid', reply)) != null ? _ref.textContent : void 0) || ''; + trip = ((_ref2 = $('.postertrip', reply)) != null ? _ref2.textContent : void 0) || ''; div = $.el('div', { className: 'stub', innerHTML: "[ + ] " + name + " " + uid + " " + trip + "" diff --git a/script.coffee b/script.coffee index d869ff73e..b1e3a30a0 100644 --- a/script.coffee +++ b/script.coffee @@ -746,7 +746,7 @@ replyHiding = if conf['Show Stubs'] name = $('.commentpostername', reply).textContent - uid = $('.posteruid', reply).textContent + uid = $('.posteruid', reply)?.textContent or '' trip = $('.postertrip', reply)?.textContent or '' div = $.el 'div',