From c715b933d8f7f6daf144464f7a3bf368830a76fe Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 21 May 2012 15:23:50 +0200 Subject: [PATCH] Remove previous quote preview when quote previewing in case it gets stuck by a low quality browser. Fix #494. --- 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 daedb818a..52b0d111a 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3190,6 +3190,9 @@ if (/\binlined\b/.test(this.className)) { return; } + if (qp = $.id('qp')) { + $.rm(qp); + } qp = UI.el = $.el('div', { id: 'qp', className: 'post reply dialog' diff --git a/script.coffee b/script.coffee index 17595e4d7..a752626ea 100644 --- a/script.coffee +++ b/script.coffee @@ -2422,6 +2422,8 @@ QuotePreview = return mouseover: (e) -> return if /\binlined\b/.test @className + if qp = $.id 'qp' + $.rm qp qp = UI.el = $.el 'div', id: 'qp' className: 'post reply dialog'