From cf878694c307fe7bc2092b6f0835320edf2ddfb3 Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 1 Aug 2011 13:03:57 -0700 Subject: [PATCH] more scroll checks --- 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 e6cc5e319..c40d64408 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2781,7 +2781,7 @@ $.bind(form, 'submit', qr.submit); } threading.init(); - if ((id = location.hash.slice(1)) && /\d/.test(id[0]) && !$.id(id)) { + if (g.REPLY && (id = location.hash.slice(1)) && /\d/.test(id[0]) && !$.id(id)) { scrollTo(0, d.body.scrollHeight); } if (conf['Auto Noko']) { diff --git a/script.coffee b/script.coffee index 600d0cef4..a53776ab6 100644 --- a/script.coffee +++ b/script.coffee @@ -2163,7 +2163,7 @@ main = # scroll to bottom if post isn't found # thumbnail generation takes time - if (id = location.hash[1..]) and /\d/.test(id[0]) and !$.id(id) + if g.REPLY and (id = location.hash[1..]) and /\d/.test(id[0]) and !$.id(id) scrollTo 0, d.body.scrollHeight if conf['Auto Noko']