diff --git a/4chan_x.user.js b/4chan_x.user.js index a7a6b51bc..cb9926cc9 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -565,10 +565,17 @@ }, createFilter: function(regexp, op, hl) { return function(root, value, isOP) { + var firstThread, thisThread; if (isOP && op === 'no' || !isOP && op === 'only') return false; if (!regexp.test(value)) return false; if (hl) { $.addClass(root, hl); + if (isOP && !g.REPLY) { + thisThread = root.parentNode; + if (firstThread = $('div[class=op]')) { + $.before(firstThread.parentNode, [thisThread, thisThread.nextElementSibling]); + } + } } else if (isOP) { if (!g.REPLY) threadHiding.hideHide(root.parentNode); } else { @@ -2114,10 +2121,10 @@ Use regular expressions, one per line.
\ Lines starting with a # will be ignored.
\ For example, /weeaboo/i will filter posts containing `weeaboo` case-insensitive.\ -