From ae9bc12cd50882ae88818ee14860f66c81500a3d Mon Sep 17 00:00:00 2001 From: James Campos Date: Sun, 8 May 2011 08:53:14 -0700 Subject: [PATCH] replace -> [2..] --- 4chan_x.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index 49ffeef5c..ff5f1d32d 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1693,7 +1693,7 @@ }, mouseover: function(e) { var el, id, qp, req, threadID; - id = this.textContent.replace(">>", ''); + id = this.textContent.slice(2); qp = $('#qp'); if (el = d.getElementById(id)) { qp.innerHTML = el.innerHTML; diff --git a/script.coffee b/script.coffee index bf083257a..2d9532872 100644 --- a/script.coffee +++ b/script.coffee @@ -1349,7 +1349,7 @@ quotePreview = $.bind quote, 'mousemove', ui.hover $.bind quote, 'mouseout', ui.hoverend mouseover: (e) -> - id = @textContent.replace ">>", '' + id = @textContent[2..] qp = $ '#qp' if el = d.getElementById id qp.innerHTML = el.innerHTML