From 438f12155e5cfc0ea7a52ff64684d053c3cdb834 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 1 Sep 2011 02:40:36 +0200 Subject: [PATCH] Fix OP indication in expanded comments, close #254 --- 4chan_x.user.js | 3 +++ changelog | 2 ++ script.coffee | 2 ++ 3 files changed, 7 insertions(+) diff --git a/4chan_x.user.js b/4chan_x.user.js index ab652909a..2015f4ca8 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -569,6 +569,9 @@ if (quote.getAttribute('href') === quote.hash) { quote.pathname = "/" + g.BOARD + "/res/" + threadID; } + if (quote.hash.slice(1) === threadID) { + quote.innerHTML += ' (OP)'; + } if (conf['Quote Preview']) { $.bind(quote, 'mouseover', quotePreview.mouseover); $.bind(quote, 'mousemove', ui.hover); diff --git a/changelog b/changelog index 9ab240b23..21bc0fcec 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,6 @@ master +- mayhem + fix OP indication in expanded comments 2.19.0 - mayhem diff --git a/script.coffee b/script.coffee index 85fb177c6..40e908e89 100644 --- a/script.coffee +++ b/script.coffee @@ -407,6 +407,8 @@ expandComment = for quote in $$ 'a.quotelink', bq if quote.getAttribute('href') is quote.hash quote.pathname = "/#{g.BOARD}/res/#{threadID}" + if quote.hash[1..] is threadID + quote.innerHTML += ' (OP)' if conf['Quote Preview'] $.bind quote, 'mouseover', quotePreview.mouseover $.bind quote, 'mousemove', ui.hover