From ee3c82707608d92425607cd58ef28d41247bc648 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sun, 30 Oct 2011 15:42:05 -0700 Subject: [PATCH] don't update closed threads --- 4chan_x.user.js | 3 +++ script.coffee | 2 ++ 2 files changed, 5 insertions(+) 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