diff --git a/4chan_x.user.js b/4chan_x.user.js index ea228dc50..17d614004 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1125,7 +1125,6 @@ } Menu.lastOpener = this; post = /\bhidden_thread\b/.test(this.parentNode.className) ? $.x('ancestor::div[parent::div[@class="board"]]/child::div[contains(@class,"opContainer")]', this) : $.x('ancestor::div[contains(@class,"postContainer")][1]', this); - $.log(postContainer); return Menu.open(this, Main.preParse(post)); }, open: function(button, post) { @@ -4010,7 +4009,7 @@ var path; path = $('.postNum > a[title="Highlight this post"]', post.el).pathname.split('/'); a.href = Redirect.thread(path[1], path[3], post.ID); - return a.textContent = "Archived post No." + post.ID; + return a.textContent = 'Archived post'; }, requirement: function(post) { var path; diff --git a/script.coffee b/script.coffee index 6bb23c206..f3b4084e2 100644 --- a/script.coffee +++ b/script.coffee @@ -861,7 +861,6 @@ Menu = $.x 'ancestor::div[parent::div[@class="board"]]/child::div[contains(@class,"opContainer")]', @ else $.x 'ancestor::div[contains(@class,"postContainer")][1]', @ - $.log postContainer Menu.open @, Main.preParse post open: (button, post) -> {el} = Menu @@ -3148,7 +3147,7 @@ ArchiveLink = open: (post) -> path = $('.postNum > a[title="Highlight this post"]', post.el).pathname.split '/' a.href = Redirect.thread path[1], path[3], post.ID - a.textContent = "Archived post No.#{post.ID}" + a.textContent = 'Archived post' requirement: (post) -> path = $('.postNum > a[title="Highlight this post"]', post.el).pathname.split '/' Redirect.thread(path[1], path[3]) isnt "//boards.4chan.org/#{path[1]}/"