diff --git a/4chan_x.user.js b/4chan_x.user.js index 9f1e668b2..76833955a 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -841,7 +841,7 @@ name = $('.commentpostername', reply).textContent; trip = ((_ref = $('.postertrip', reply)) != null ? _ref.textContent : void 0) || ''; a = $.el('a', { - textContent: "[ + ] " + name + " " + trip, + innerHTML: "[ + ] " + name + " " + trip, href: 'javascript:;' }); $.on(a, 'click', replyHiding.cb.show); @@ -1908,7 +1908,7 @@ name = $('.postername', thread).textContent; trip = ((_ref = $('.postername + .postertrip', thread)) != null ? _ref.textContent : void 0) || ''; a = $.el('a', { - textContent: "[ + ] " + name + trip + " (" + text + ")", + innerHTML: "[ + ] " + name + trip + " (" + text + ")", href: 'javascript:;' }); $.on(a, 'click', threadHiding.cb.show); diff --git a/script.coffee b/script.coffee index 9d16c396d..bebc60b93 100644 --- a/script.coffee +++ b/script.coffee @@ -614,7 +614,7 @@ replyHiding = name = $('.commentpostername', reply).textContent trip = $('.postertrip', reply)?.textContent or '' a = $.el 'a', - textContent: "[ + ] #{name} #{trip}" + innerHTML: "[ + ] #{name} #{trip}" href: 'javascript:;' $.on a, 'click', replyHiding.cb.show @@ -1492,7 +1492,7 @@ threadHiding = trip = $('.postername + .postertrip', thread)?.textContent or '' a = $.el 'a', - textContent: "[ + ] #{name}#{trip} (#{text})" + innerHTML: "[ + ] #{name}#{trip} (#{text})" href: 'javascript:;' $.on a, 'click', threadHiding.cb.show