diff --git a/4chan_x.user.js b/4chan_x.user.js index df472b741..42338d928 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1900,6 +1900,9 @@ updater = { init: function() { var checkbox, checked, dialog, html, input, name, title, _i, _len, _ref; + if (!$('form[name=post]')) { + return; + } if (conf['Scrolling']) { if (conf['Scroll BG']) { updater.focus = true; diff --git a/script.coffee b/script.coffee index 9c5908b79..c72112c0c 100644 --- a/script.coffee +++ b/script.coffee @@ -1433,6 +1433,8 @@ threadHiding = updater = init: -> + #thread closed + return unless $ 'form[name=post]' if conf['Scrolling'] if conf['Scroll BG'] updater.focus = true