From 47c517efb189593c5e1866d43e5e83013ceeb401 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 21 May 2012 14:36:43 +0200 Subject: [PATCH] Don't add the highlight class to the .thread. #491. --- 4chan_x.user.js | 4 ++-- script.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index a30aab865..28879fef0 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -592,7 +592,7 @@ } return; } - $.addClass((isOP ? root.parentNode : root), result[0]); + $.addClass(root, result[0]); if (isOP && result[1] && !g.REPLY) { thisThread = root.parentNode; if (firstThread = $('div[class=thread]')) { @@ -4533,7 +4533,7 @@ div.opContainer {\ margin: 0;\ padding: 0;\ }\ -.filter_highlight.thread > .opContainer {\ +.opContainer.filter_highlight {\ box-shadow: inset 5px 0 rgba(255,0,0,0.5);\ }\ .filter_highlight > .reply {\ diff --git a/script.coffee b/script.coffee index c6e4872a1..01a818ebb 100644 --- a/script.coffee +++ b/script.coffee @@ -475,7 +475,7 @@ Filter = return # Highlight - $.addClass (if isOP then root.parentNode else root), result[0] + $.addClass root, result[0] if isOP and result[1] and not g.REPLY # Put the highlighted OPs' thread on top of the board page... thisThread = root.parentNode @@ -3533,7 +3533,7 @@ div.opContainer { margin: 0; padding: 0; } -.filter_highlight.thread > .opContainer { +.opContainer.filter_highlight { box-shadow: inset 5px 0 rgba(255,0,0,0.5); } .filter_highlight > .reply {