From 0477eb595c22b86ec2f959b911962e3ccbdffdca Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 3 Jan 2013 15:30:31 +0100 Subject: [PATCH] Quotify inside archived posts. --- 4chan_x.user.js | 1 + script.coffee | 2 ++ 2 files changed, 3 insertions(+) diff --git a/4chan_x.user.js b/4chan_x.user.js index 936c011f5..3a9c9043b 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3746,6 +3746,7 @@ } }); comment = bq.innerHTML.replace(/(^|>)(>[^<$]*)(<|$)/g, '$1$2$3'); + comment = comment.replace(/((>){2}(>\/[a-z\d]+\/)?\d+)/g, '$1'); o = { postID: postID, threadID: data.thread_num, diff --git a/script.coffee b/script.coffee index f1ed04842..6eda9ea16 100644 --- a/script.coffee +++ b/script.coffee @@ -2978,6 +2978,8 @@ Get = '' # greentext comment = bq.innerHTML.replace /(^|>)(>[^<$]*)(<|$)/g, '$1$2$3' + # quotes + comment = comment.replace /((>){2}(>\/[a-z\d]+\/)?\d+)/g, '$1' o = # id