diff --git a/4chan_x.user.js b/4chan_x.user.js index 2cdba2ff1..d04e83047 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2399,7 +2399,7 @@ return $.set("hiddenThreads/" + g.BOARD + "/", hiddenThreads); }, hideHide: function(thread) { - var a, div, name, num, span, text, trip, _ref; + var a, div, name, num, span, text, trip, uid, _ref, _ref2; if (conf['Show Stubs']) { if (/stub/.test(thread.className)) return; if (span = $('.omittedposts', thread)) { @@ -2410,9 +2410,10 @@ num += $$('table', thread).length; text = num === 1 ? "1 reply" : "" + num + " replies"; name = $('.postername', thread).textContent; - trip = ((_ref = $('.postername + .postertrip', thread)) != null ? _ref.textContent : void 0) || ''; + uid = ((_ref = $('.posteruid', thread)) != null ? _ref.textContent : void 0) || ''; + trip = ((_ref2 = $('.postername + .postertrip', thread)) != null ? _ref2.textContent : void 0) || ''; a = $.el('a', { - innerHTML: "[ + ] " + name + trip + " (" + text + ")", + innerHTML: "[ + ] " + name + uid + trip + " (" + text + ")", href: 'javascript:;' }); $.on(a, 'click', threadHiding.cb.show); diff --git a/script.coffee b/script.coffee index b1e3a30a0..441c0583a 100644 --- a/script.coffee +++ b/script.coffee @@ -1973,10 +1973,11 @@ threadHiding = num += $$('table', thread).length text = if num is 1 then "1 reply" else "#{num} replies" name = $('.postername', thread).textContent + uid = $('.posteruid', thread)?.textContent or '' trip = $('.postername + .postertrip', thread)?.textContent or '' a = $.el 'a', - innerHTML: "[ + ] #{name}#{trip} (#{text})" + innerHTML: "[ + ] #{name}#{uid}#{trip} (#{text})" href: 'javascript:;' $.on a, 'click', threadHiding.cb.show