From 5babd54cb77ff4d5764703a80009aa2217ed9963 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 13 Sep 2012 11:36:23 +0200 Subject: [PATCH 1/3] You can't filter recursively OPs (blame capcode replies). --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 462cae0d8..b4f095dd6 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -845,7 +845,7 @@ quote = _ref[_i]; if ((el = $.id(quote.hash.slice(1))) && el.hidden) { $.addClass(quote, 'filtered'); - if (Conf['Recursive Filtering']) { + if (Conf['Recursive Filtering'] && post.ID !== post.threadID) { show_stub = !!$.x('preceding-sibling::div[contains(@class,"stub")]', el); ReplyHiding.hide(post.root, show_stub); } diff --git a/script.coffee b/script.coffee index 8c012aa78..a233311fe 100644 --- a/script.coffee +++ b/script.coffee @@ -697,7 +697,7 @@ StrikethroughQuotes = for quote in post.quotes if (el = $.id quote.hash[1..]) and el.hidden $.addClass quote, 'filtered' - if Conf['Recursive Filtering'] + if Conf['Recursive Filtering'] and post.ID isnt post.threadID show_stub = !!$.x 'preceding-sibling::div[contains(@class,"stub")]', el ReplyHiding.hide post.root, show_stub return From c4d049f280361a9ae0e52411c342e59f71c91dae Mon Sep 17 00:00:00 2001 From: woxxy Date: Thu, 13 Sep 2012 13:40:19 +0200 Subject: [PATCH 2/3] when media object is empty there's no image --- script.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.coffee b/script.coffee index c7f892ead..7f396b50c 100644 --- a/script.coffee +++ b/script.coffee @@ -2851,7 +2851,7 @@ Get = dateUTC: data.timestamp comment: comment # file - if data.media.media_filename + if data.media?.media_filename o.file = name: data.media.media_filename_processed timestamp: data.media.media_orig From 1d267e054198ad28f9da410084e05af236af7269 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 13 Sep 2012 13:44:11 +0200 Subject: [PATCH 3/3] Compile. --- 4chan_x.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index b4f095dd6..c3eec1885 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3566,7 +3566,7 @@ } }, parseArchivedPost: function(req, board, postID, root, cb) { - var bq, comment, data, o; + var bq, comment, data, o, _ref; data = JSON.parse(req.response); if (data.error) { $.addClass(root, 'warning'); @@ -3628,7 +3628,7 @@ dateUTC: data.timestamp, comment: comment }; - if (data.media.media_filename) { + if ((_ref = data.media) != null ? _ref.media_filename : void 0) { o.file = { name: data.media.media_filename_processed, timestamp: data.media.media_orig,