1.0.7 - fix false trips in thread hiding

This commit is contained in:
James Campos 2010-04-26 23:15:46 -07:00
parent f6f3ea4c8d
commit aacd7f4cee
3 changed files with 3 additions and 3 deletions

View File

@ -299,7 +299,7 @@ hideThread: (div) ->
n += $$('table', div).length n += $$('table', div).length
text: if n is 1 then "1 reply" else "$n replies" text: if n is 1 then "1 reply" else "$n replies"
name: $('span.postername', div).textContent name: $('span.postername', div).textContent
trip: $('span.postertrip', div)?.textContent || '' trip: $('span.postername + span.postertrip', div)?.textContent || ''
a.textContent: "[ + ] $name$trip ($text)" a.textContent: "[ + ] $name$trip ($text)"
a.className: 'pointer' a.className: 'pointer'
a.addEventListener('click', showThread, true) a.addEventListener('click', showThread, true)

View File

@ -340,7 +340,7 @@ cursor: pointer; \
n += $$('table', div).length; n += $$('table', div).length;
text = n === 1 ? "1 reply" : ("" + n + " replies"); text = n === 1 ? "1 reply" : ("" + n + " replies");
name = $('span.postername', div).textContent; name = $('span.postername', div).textContent;
trip = ((_d = $('span.postertrip', div)) == undefined ? undefined : _d.textContent) || ''; trip = ((_d = $('span.postername + span.postertrip', div)) == undefined ? undefined : _d.textContent) || '';
a.textContent = ("[ + ] " + name + trip + " (" + text + ")"); a.textContent = ("[ + ] " + name + trip + " (" + text + ")");
a.className = 'pointer'; a.className = 'pointer';
a.addEventListener('click', showThread, true); a.addEventListener('click', showThread, true);

View File

@ -2,7 +2,7 @@
// @name 4chan x // @name 4chan x
// @namespace aeosynth // @namespace aeosynth
// @description Adds various features; replaces the extension / fychan. // @description Adds various features; replaces the extension / fychan.
// @version 1.0.6 // @version 1.0.7
// @copyright 2009, 2010 James Campos // @copyright 2009, 2010 James Campos
// @license MIT; http://en.wikipedia.org/wiki/Mit_license // @license MIT; http://en.wikipedia.org/wiki/Mit_license
// @include http://boards.4chan.org/* // @include http://boards.4chan.org/*