diff --git a/4chan_x.user.js b/4chan_x.user.js index 59a77f20c..0e392ff5d 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1062,7 +1062,7 @@ } num += $$('.opContainer ~ .replyContainer', thread).length; text = num === 1 ? '1 reply' : "" + num + " replies"; - opInfo = $('.op > .postInfo > .nameBlock', thread).textContent; + opInfo = $('.desktop > .nameBlock', thread).textContent; stub = $.el('div', { className: 'hide_thread_button hidden_thread', innerHTML: '[ + ] ' @@ -1148,7 +1148,7 @@ }); a = stub.firstChild; $.on(a, 'click', ReplyHiding.toggle); - $.add(a, $.tn($('.nameBlock', el).textContent)); + $.add(a, $.tn($('.desktop > .nameBlock', el).textContent)); if (Conf['Menu']) { menuButton = Menu.a.cloneNode(true); $.on(menuButton, 'click', Menu.toggle); diff --git a/script.coffee b/script.coffee index e702ee2db..171a82380 100644 --- a/script.coffee +++ b/script.coffee @@ -853,7 +853,7 @@ ThreadHiding = num = Number span.textContent.match /\d+/ num += $$('.opContainer ~ .replyContainer', thread).length text = if num is 1 then '1 reply' else "#{num} replies" - opInfo = $('.op > .postInfo > .nameBlock', thread).textContent + opInfo = $('.desktop > .nameBlock', thread).textContent stub = $.el 'div', className: 'hide_thread_button hidden_thread' @@ -918,7 +918,7 @@ ReplyHiding = innerHTML: '[ + ] ' a = stub.firstChild $.on a, 'click', ReplyHiding.toggle - $.add a, $.tn $('.nameBlock', el).textContent + $.add a, $.tn $('.desktop > .nameBlock', el).textContent if Conf['Menu'] menuButton = Menu.a.cloneNode true $.on menuButton, 'click', Menu.toggle