From 6a1985d6c3cedd4e15ba8e89bb222d403188dd4d Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 20 Jul 2011 04:16:23 +0200 Subject: [PATCH] Only listen to the form. --- 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 f158a39b7..3c41dc3f8 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2812,7 +2812,7 @@ callback(table); } } - $.bind(d.body, 'DOMNodeInserted', nodeInserted); + $.bind($('form[name=delform]'), 'DOMNodeInserted', nodeInserted); options.init(); if (!$.getValue('firstrun')) { return firstRun.init(); diff --git a/script.coffee b/script.coffee index 713c236af..5fe557425 100644 --- a/script.coffee +++ b/script.coffee @@ -2201,7 +2201,7 @@ main = for table in $$ 'a + table' for callback in g.callbacks callback table - $.bind d.body, 'DOMNodeInserted', nodeInserted + $.bind $('form[name=delform]'), 'DOMNodeInserted', nodeInserted options.init() unless $.getValue 'firstrun'