diff --git a/4chan_x.js b/4chan_x.js index c40255dcb..fe2f89173 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -827,13 +827,13 @@ if (g.PAGENUM === 0) { window.scrollTo(0, 0); } else { - window.location = "" + (g.PAGENUM - 1) + "#p0"; + window.location = "" + (g.PAGENUM - 1) + "#0"; } return; } if (delta === +1) { if (i === nav.threads.length || (innerHeight + pageYOffset === d.body.scrollHeight)) { - window.location = "" + (g.PAGENUM + 1) + "#p0"; + window.location = "" + (g.PAGENUM + 1) + "#0"; return; } } diff --git a/script.coffee b/script.coffee index a519d1a0b..17c68951b 100644 --- a/script.coffee +++ b/script.coffee @@ -616,13 +616,13 @@ nav = if g.PAGENUM is 0 window.scrollTo 0, 0 else - window.location = "#{g.PAGENUM - 1}#p0" + window.location = "#{g.PAGENUM - 1}#0" return if delta is +1 # if we're at the last thread, or we're at the bottom of the page. # kind of hackish, what we really need to do is make nav.getThread smarter. if i is nav.threads.length or (innerHeight + pageYOffset == d.body.scrollHeight) - window.location = "#{g.PAGENUM + 1}#p0" + window.location = "#{g.PAGENUM + 1}#0" return {top} = nav.threads[i].getBoundingClientRect()