diff --git a/4chan_x.js b/4chan_x.js index 09c2a450a..cceb2e283 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -604,14 +604,14 @@ }, node: function(root) { var a, dd, id, reply; - if (!(dd = $('td.doubldash', root))) { + if (!(dd = $('td.doubledash', root))) { return; } a = $.el('a', { textContent: '[ - ]' }); $.bind(a, 'click', replyHiding.cb.hide); - $.replace(dd, a); + $.replace(dd.firstChild, a); reply = dd.nextSibling; id = reply.id; if (id in g.hiddenReplies) { diff --git a/script.coffee b/script.coffee index fb96d9d98..0a4d85ed4 100644 --- a/script.coffee +++ b/script.coffee @@ -429,11 +429,11 @@ replyHiding = replyHiding.hide reply node: (root) -> - return unless dd = $ 'td.doubldash', root + return unless dd = $ 'td.doubledash', root a = $.el 'a', textContent: '[ - ]' $.bind a, 'click', replyHiding.cb.hide - $.replace dd, a + $.replace dd.firstChild, a reply = dd.nextSibling id = reply.id