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