From 3e9992f4ad6cf1dbd57c3fe21227a13f5f8f1053 Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 28 May 2012 04:53:02 -0700 Subject: [PATCH] fix expanding comments --- 4chan_x.user.js | 6 +++--- script.coffee | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 708a679a7..62eaed735 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -750,9 +750,8 @@ } quote.href = "res/" + href; } - Main.prettify(node); post = { - el: node, + blockquote: node, threadId: threadID, quotes: quotes, backlinks: [] @@ -772,7 +771,8 @@ if (Conf['Indicate Cross-thread Quotes']) { QuoteCT.node(post); } - return $.replace(a.parentNode.parentNode, node); + $.replace(a.parentNode.parentNode, node); + return Main.prettify(node); } }; diff --git a/script.coffee b/script.coffee index 551306bf5..91f5436d4 100644 --- a/script.coffee +++ b/script.coffee @@ -577,12 +577,11 @@ ExpandComment = href = quote.getAttribute 'href' continue if href[0] is '/' # Cross-board quote quote.href = "res/#{href}" # Fix pathnames - Main.prettify node post = - el: node - threadId: threadID - quotes: quotes - backlinks: [] + blockquote: node + threadId: threadID + quotes: quotes + backlinks: [] if Conf['Resurrect Quotes'] Quotify.node post if Conf['Quote Preview'] @@ -594,6 +593,7 @@ ExpandComment = if Conf['Indicate Cross-thread Quotes'] QuoteCT.node post $.replace a.parentNode.parentNode, node + Main.prettify node ExpandThread = init: ->