From 753d63ca072beae91618a28aa1d98017551c51c1 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 28 May 2012 14:53:43 +0200 Subject: [PATCH] Fix #508 --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 62eaed735..74dd89b69 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -607,7 +607,7 @@ $.addClass(root, result[0]); if (isOP && result[1] && !g.REPLY) { thisThread = root.parentNode; - if (firstThread = $('div[class=thread]')) { + if (firstThread = $('div[class="postContainer opContainer"]').parentNode) { $.before(firstThread, [thisThread, thisThread.nextElementSibling]); } } diff --git a/script.coffee b/script.coffee index 91f5436d4..3e7e135c0 100644 --- a/script.coffee +++ b/script.coffee @@ -486,7 +486,7 @@ Filter = # Put the highlighted OPs' thread on top of the board page... thisThread = root.parentNode # ...before the first non highlighted thread. - if firstThread = $ 'div[class=thread]' + if firstThread = $('div[class="postContainer opContainer"]').parentNode $.before firstThread, [thisThread, thisThread.nextElementSibling] name: (post) ->