diff --git a/4chan_x.user.js b/4chan_x.user.js index 62e409baf..af34f52c8 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1646,7 +1646,7 @@ while ((reply = replies.pop()) && (reply.id > id)) { arr.push(reply.parentNode.parentNode.parentNode); } - ircScroll = conf['Scrolling'] && arr.length && (document.height - document.body.clientHeight - window.scrollY < 20); + ircScroll = conf['Scrolling'] && arr.length && (d.body.scrollHeight - d.body.clientHeight - window.scrollY < 20); updater.timer.textContent = '-' + conf['Interval']; if (conf['Verbose']) { updater.count.textContent = '+' + arr.length; diff --git a/script.coffee b/script.coffee index a3f24cb42..2c6023f03 100644 --- a/script.coffee +++ b/script.coffee @@ -1345,7 +1345,7 @@ updater = while (reply = replies.pop()) and (reply.id > id) arr.push reply.parentNode.parentNode.parentNode #table - ircScroll = conf['Scrolling'] && arr.length && (document.height - document.body.clientHeight - window.scrollY < 20) + ircScroll = conf['Scrolling'] && arr.length && (d.body.scrollHeight - d.body.clientHeight - window.scrollY < 20) updater.timer.textContent = '-' + conf['Interval'] if conf['Verbose']