From f30eb62558cd3d8eb5c54df7cb556f32b30f27ae Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 11 Mar 2012 22:17:30 +0100 Subject: [PATCH] Fix trip in stubs when the tripcode is inside a mail anchor. --- 4chan_x.user.js | 6 +++--- script.coffee | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 04347bb19..50c29c660 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -917,9 +917,9 @@ if (table.hidden) return; table.hidden = true; if (!conf['Show Stubs']) return; - name = $('td[id] > .commentpostername', table).textContent; - uid = ((_ref = $('td[id] > .posteruid', table)) != null ? _ref.textContent : void 0) || ''; - trip = ((_ref2 = $('td[id] > .postertrip', table)) != null ? _ref2.textContent : void 0) || ''; + name = $('.commentpostername', table).textContent; + uid = ((_ref = $('.posteruid', table)) != null ? _ref.textContent : void 0) || ''; + trip = ((_ref2 = $('.postertrip', table)) != null ? _ref2.textContent : void 0) || ''; div = $.el('div', { className: 'stub', innerHTML: "[ + ] " + name + " " + uid + " " + trip + "" diff --git a/script.coffee b/script.coffee index f86540347..e5fd032b6 100644 --- a/script.coffee +++ b/script.coffee @@ -778,9 +778,9 @@ ReplyHiding = return unless conf['Show Stubs'] - name = $('td[id] > .commentpostername', table).textContent - uid = $('td[id] > .posteruid', table)?.textContent or '' - trip = $('td[id] > .postertrip', table)?.textContent or '' + name = $('.commentpostername', table).textContent + uid = $('.posteruid', table)?.textContent or '' + trip = $('.postertrip', table)?.textContent or '' div = $.el 'div', className: 'stub'