From fc1ddc4611541e24ffa9e6585959933b62a22491 Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 25 Apr 2011 01:06:42 -0700 Subject: [PATCH] fix /b/ nav --- 4chan_x.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index c3f285170..275813ba6 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -827,7 +827,7 @@ window.scrollTo(0, 0); return; } - if (i === 10) { + if (i === nav.threads.length) { window.location = "" + (g.PAGENUM + 1) + "#p0"; return; } diff --git a/script.coffee b/script.coffee index 870728b8f..ed1773a65 100644 --- a/script.coffee +++ b/script.coffee @@ -615,7 +615,7 @@ nav = if i is -1 window.scrollTo 0, 0 return - if i is 10 + if i is nav.threads.length window.location = "#{g.PAGENUM + 1}#p0" return