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 {