From f30eb62558cd3d8eb5c54df7cb556f32b30f27ae Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 11 Mar 2012 22:17:30 +0100 Subject: [PATCH 1/2] 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' From 83dc49c30b59d3dcf4b04e7048b18aaedd4829f8 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 11 Mar 2012 23:42:03 +0100 Subject: [PATCH 2/2] Turn the forwarded quote back to blue. --- 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 50c29c660..437bce0a5 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -4379,7 +4379,7 @@ td > .filesize > img[md5] {\ text-decoration: line-through;\ }\ .quotelink.forwardlink {\ - color: #ef5411;\ + color: #2C2C63;\ }\ ' }; diff --git a/script.coffee b/script.coffee index e5fd032b6..667212745 100644 --- a/script.coffee +++ b/script.coffee @@ -3698,7 +3698,7 @@ td > .filesize > img[md5] { text-decoration: line-through; } .quotelink.forwardlink { - color: #ef5411; + color: #2C2C63; } '