1.0.7 - fix false trips in thread hiding
This commit is contained in:
parent
f6f3ea4c8d
commit
aacd7f4cee
@ -299,7 +299,7 @@ hideThread: (div) ->
|
||||
n += $$('table', div).length
|
||||
text: if n is 1 then "1 reply" else "$n replies"
|
||||
name: $('span.postername', div).textContent
|
||||
trip: $('span.postertrip', div)?.textContent || ''
|
||||
trip: $('span.postername + span.postertrip', div)?.textContent || ''
|
||||
a.textContent: "[ + ] $name$trip ($text)"
|
||||
a.className: 'pointer'
|
||||
a.addEventListener('click', showThread, true)
|
||||
|
||||
@ -340,7 +340,7 @@ cursor: pointer; \
|
||||
n += $$('table', div).length;
|
||||
text = n === 1 ? "1 reply" : ("" + n + " replies");
|
||||
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.className = 'pointer';
|
||||
a.addEventListener('click', showThread, true);
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// @name 4chan x
|
||||
// @namespace aeosynth
|
||||
// @description Adds various features; replaces the extension / fychan.
|
||||
// @version 1.0.6
|
||||
// @version 1.0.7
|
||||
// @copyright 2009, 2010 James Campos
|
||||
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
|
||||
// @include http://boards.4chan.org/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user