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',