From d2a68c2be095dda7eaf11d20439e0686aaa18a1f Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Fri, 13 Jul 2012 23:30:21 +0200 Subject: [PATCH] Fix #617. --- 4chan_x.user.js | 4 ++-- script.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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