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