diff --git a/4chan_x.user.js b/4chan_x.user.js index 9f62511c1..2e09511af 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2658,7 +2658,7 @@ if (post.isInlined && !post.isCrosspost) { return; } - name = $('.name', post.el); + name = $('.postInfo .name', post.el); name.textContent = 'Anonymous'; if ((trip = name.nextElementSibling) && trip.className === 'postertrip') { $.rm(trip); diff --git a/script.coffee b/script.coffee index aa20fda18..2daf72948 100644 --- a/script.coffee +++ b/script.coffee @@ -2086,7 +2086,7 @@ Anonymize = Main.callbacks.push @node node: (post) -> return if post.isInlined and not post.isCrosspost - name = $ '.name', post.el + name = $ '.postInfo .name', post.el name.textContent = 'Anonymous' if (trip = name.nextElementSibling) and trip.className is 'postertrip' $.rm trip @@ -2859,6 +2859,7 @@ ImageExpand = expand: (thumb, url) -> # Do not expand images of hidden/filtered replies, or already expanded pictures. return if $.x 'ancestor-or-self::*[@hidden]', thumb + thumb.hidden = true if img = thumb.nextSibling # Expand already loaded picture