by Flappypaddles November 12th 2016, 9:37 am
Ace 1 wrote:@flappypaddles Then replace the script with this:
- Code:
var filteredMembers = ['/u81'],
i = 0,
j = filteredMembers.length;
for (; i < j; i++) {
$('#comments_scroll_div .js-marquee > a').each(function() {
if ($(this).attr('href').indexOf(filteredMembers[i]) != -1) {
$(this.previousSibling, this.nextSibling).remove();
$(this).prevUntil('a').prev().andSelf().remove();
$(this.previousSibling).remove();
$(this.previousSibling).remove();
$(this.nextSibling).remove();
$(this).remove();
}
});
}
Hi just seen it is working, however not quite as I wished. when he posts a lot they get removed, but it essentially restricts the scrolling topics to making his posts invisible.
it's supposed to show the last 15, if he posts 10 then it only shows 5, I was rather hoping it would show the other 10 previous posts by other people before he posted not just make his invisible. I guess that may be a little harder to do though.
does that make sense to you?