From 154cec7ee00d505eb4e995821826880a18b1cd25 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 29 Feb 2012 19:03:40 +0100 Subject: [PATCH] Fix #289. --- 4chan_x.user.js | 9 +++++++-- script.coffee | 8 ++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index ce47054d8..9e8de9c1d 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -584,7 +584,11 @@ return false; } if (hl) { - $.addClass(root, hl); + if (isOP) { + $.addClass(root, hl); + } else { + $.addClass(root.parentNode, hl); + } if (isOP && top && !g.REPLY) { thisThread = root.parentNode; if (firstThread = $('div[class=op]')) { @@ -4268,7 +4272,8 @@ td > .filesize > img[md5] {\ .filetitle, .replytitle, .postername, .commentpostername, .postertrip {\ background: none;\ }\ -.filter_highlight {\ +.filter_highlight.op,\ +.filter_highlight > td[id] {\ box-shadow: -5px 0 rgba(255,0,0,0.5);\ }\ .filtered {\ diff --git a/script.coffee b/script.coffee index 5901d473e..4f2056a2d 100644 --- a/script.coffee +++ b/script.coffee @@ -509,7 +509,10 @@ filter = else unless regexp.test value return false if hl - $.addClass root, hl + if isOP + $.addClass root, hl + else + $.addClass root.parentNode, hl if isOP and top and not g.REPLY # Put the highlighted OPs' threads on top of the board pages... thisThread = root.parentNode @@ -3557,7 +3560,8 @@ td > .filesize > img[md5] { .filetitle, .replytitle, .postername, .commentpostername, .postertrip { background: none; } -.filter_highlight { +.filter_highlight.op, +.filter_highlight > td[id] { box-shadow: -5px 0 rgba(255,0,0,0.5); } .filtered {