fix #406, dupe stubs
This commit is contained in:
parent
d92693a602
commit
ec326e7557
@ -851,6 +851,7 @@
|
||||
hideHide: function(reply) {
|
||||
var a, div, name, table, trip, _ref;
|
||||
table = reply.parentNode.parentNode.parentNode;
|
||||
if (table.hidden) return;
|
||||
table.hidden = true;
|
||||
if (conf['Show Stubs']) {
|
||||
name = $('.commentpostername', reply).textContent;
|
||||
@ -1857,6 +1858,7 @@
|
||||
hideHide: function(thread) {
|
||||
var a, div, name, num, span, text, trip, _ref;
|
||||
if (conf['Show Stubs']) {
|
||||
if (/stub/.test(thread.className)) return;
|
||||
if (span = $('.omittedposts', thread)) {
|
||||
num = Number(span.textContent.match(/\d+/)[0]);
|
||||
} else {
|
||||
|
||||
@ -607,6 +607,8 @@ replyHiding =
|
||||
|
||||
hideHide: (reply) ->
|
||||
table = reply.parentNode.parentNode.parentNode
|
||||
return if table.hidden #already hidden by filter
|
||||
|
||||
table.hidden = true
|
||||
|
||||
if conf['Show Stubs']
|
||||
@ -1460,6 +1462,7 @@ threadHiding =
|
||||
|
||||
hideHide: (thread) ->
|
||||
if conf['Show Stubs']
|
||||
return if /stub/.test thread.className #already hidden by filter
|
||||
if span = $ '.omittedposts', thread
|
||||
num = Number span.textContent.match(/\d+/)[0]
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user