From e19cbc8fc52c8fbcdbdd15e76f133e3e03ff0f4d Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 23 Aug 2011 04:53:52 +0200 Subject: [PATCH] Fix selector in watcher.watch(). --- 4chan_x.user.js | 4 ++-- script.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index c2d9bbbba..4156d45f3 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1876,9 +1876,9 @@ }, watch: function(thread, id) { var el, props, watched, _name; - el = $('span.filetitle'); + el = $('span.filetitle', thread); if (!el.textContent) { - el = $('blockquote'); + el = $('blockquote', thread); if (!el.textContent) { return; } diff --git a/script.coffee b/script.coffee index 36f451a26..b1c99dd5b 100644 --- a/script.coffee +++ b/script.coffee @@ -1538,9 +1538,9 @@ watcher = watcher.refresh() watch: (thread, id) -> - el = $ 'span.filetitle' + el = $ 'span.filetitle', thread if not el.textContent - el = $ 'blockquote' + el = $ 'blockquote', thread if not el.textContent return props =