diff --git a/4chan_x.user.js b/4chan_x.user.js
index 6517e3657..b99c61db4 100644
--- a/4chan_x.user.js
+++ b/4chan_x.user.js
@@ -2615,13 +2615,13 @@
Watcher = {
init: function() {
- var favicon, html, input, inputs, _i, _len;
+ var favicon, html, input, _i, _len, _ref;
html = '
Thread Watcher
';
this.dialog = UI.dialog('watcher', 'top: 50px; left: 0px;', html);
$.add(d.body, this.dialog);
- inputs = $$('.op > input');
- for (_i = 0, _len = inputs.length; _i < _len; _i++) {
- input = inputs[_i];
+ _ref = $$('.op input');
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
+ input = _ref[_i];
favicon = $.el('img', {
className: 'favicon'
});
diff --git a/script.coffee b/script.coffee
index b9f93844e..791f7ae21 100644
--- a/script.coffee
+++ b/script.coffee
@@ -2087,8 +2087,7 @@ Watcher =
$.add d.body, @dialog
#add watch buttons
- inputs = $$ '.op > input'
- for input in inputs
+ for input in $$ '.op input'
favicon = $.el 'img',
className: 'favicon'
$.on favicon, 'click', @cb.toggle