diff --git a/4chan_x.user.js b/4chan_x.user.js index 721882299..59972033b 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2143,7 +2143,7 @@ if (!Conf['Hiding Buttons']) { return; } - return $.replace(this.nodes.root.firstElementChild, ReplyHiding.makeButton(this, 'hide')); + return $.replace($('.sideArrows', this.nodes.root), ReplyHiding.makeButton(this, 'hide')); }, getHiddenPosts: function() { var hiddenPosts; diff --git a/src/features.coffee b/src/features.coffee index 97b07ac69..beaf4a48c 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -1064,7 +1064,7 @@ ReplyHiding = else Recursive.hide @, data.makeStub return unless Conf['Hiding Buttons'] - $.replace @nodes.root.firstElementChild, ReplyHiding.makeButton @, 'hide' + $.replace $('.sideArrows', @nodes.root), ReplyHiding.makeButton @, 'hide' getHiddenPosts: -> hiddenPosts = $.get "hiddenPosts.#{g.BOARD}"