From e0fe93d204af798791dfa4b0b93205c068f9b17c Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 20 Jun 2011 00:59:43 +0200 Subject: [PATCH] Only one reply on /t/ --- 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 7cd637412..19e138f72 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -576,7 +576,7 @@ return $.cache[pathname].abort(); case '-': a.textContent = a.textContent.replace('-', '+'); - num = g.BOARD === 'b' ? 3 : 5; + num = g.BOARD === 'b' ? 3 : g.BOARD === 't' ? 1 : 5; table = $.x("following::br[@clear][1]/preceding::table[" + num + "]", a); while ((prev = table.previousSibling) && (prev.nodeName === 'TABLE')) { $.rm(prev); diff --git a/script.coffee b/script.coffee index 8a7d8a519..00bc4346a 100644 --- a/script.coffee +++ b/script.coffee @@ -400,7 +400,7 @@ expandThread = when '-' a.textContent = a.textContent.replace '-', '+' #goddamit moot - num = if g.BOARD is 'b' then 3 else 5 + num = if g.BOARD is 'b' then 3 else if g.BOARD is 't' then 1 else 5 table = $.x "following::br[@clear][1]/preceding::table[#{num}]", a while (prev = table.previousSibling) and (prev.nodeName is 'TABLE') $.rm prev