diff --git a/4chan_x.user.js b/4chan_x.user.js index 2c10db926..fe7630925 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2743,7 +2743,7 @@ $.bind(form, 'submit', qr.submit); } threading.init(); - if ((id = location.hash.slice(1)) && !$.id(id) && !/\D/.test(id)) { + if ((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 30f6ad5d1..afb5c8a8d 100644 --- a/script.coffee +++ b/script.coffee @@ -2128,7 +2128,7 @@ main = # scroll to bottom if post isn't found # thumbnail generation takes time - if (id = location.hash[1..]) and !$.id(id) and !/\D/.test id + if (id = location.hash[1..]) and /\d/.test(id[0]) and !$.id(id) scrollTo 0, d.body.scrollHeight if conf['Auto Noko']