From 128edfe32cdb267ab9dc60af79007661384d7f36 Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 30 May 2011 23:01:27 -0700 Subject: [PATCH] Revert "fix op quoting" This reverts commit bac8575555ece4852bf6abaf204a5ab6d4571a89. --- 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 609ea6229..351cf63b3 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1972,7 +1972,7 @@ _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) { quote = _ref[_i]; - qid = ((_ref2 = quote.hash) != null ? _ref2.slice(1) : void 0) || quote.getAttribute('data-href').match(/\d+$/)[0]; + qid = ((_ref2 = quote.hash) != null ? _ref2.slice(1) : void 0) || quote.getAttribute('data-href').match(/\d+/)[0]; _results.push(qid === tid ? quote.innerHTML += ' (OP)' : void 0); } return _results; diff --git a/script.coffee b/script.coffee index 6516efdfc..cdd797a41 100644 --- a/script.coffee +++ b/script.coffee @@ -1539,7 +1539,7 @@ quoteOP = return if root.className is 'inline' tid = g.THREAD_ID or $.x('ancestor::div[contains(@class,"thread")]/div', root).id for quote in $$ 'a.quotelink', root - qid = quote.hash?[1..] or quote.getAttribute('data-href').match(/\d+$/)[0] + qid = quote.hash?[1..] or quote.getAttribute('data-href').match(/\d+/)[0] if qid is tid quote.innerHTML += ' (OP)'