From 5d68f6fcb79d35e98a508603c896e6261c406548 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 28 Feb 2013 19:56:34 +0100 Subject: [PATCH] Fix [ - ] for replies hiding the stub. --- 4chan_x.user.js | 2 +- src/features.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}"