From 6ffcf008711559adf64a8a5d5b71c217f20d2470 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 10 Oct 2011 13:21:30 +0200 Subject: [PATCH] Single selector, less durfing. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 6e6054ff2..86d0a3638 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3131,7 +3131,7 @@ expandComment.init(); } } - nodes = $$('.op').concat($$('a + table')); + nodes = $$('.op, a + table'); g.callbacks.forEach(function(callback) { return nodes.forEach(callback); }); diff --git a/script.coffee b/script.coffee index 787716f27..bf14dd630 100644 --- a/script.coffee +++ b/script.coffee @@ -2369,7 +2369,7 @@ Main = if conf['Comment Expansion'] expandComment.init() - nodes = $$('.op').concat $$ 'a + table' + nodes = $$ '.op, a + table' g.callbacks.forEach (callback) -> nodes.forEach callback $.bind $('form[name=delform]'), 'DOMNodeInserted', nodeInserted options.init()