Anonymous ID: 88c134 Dec. 16, 2020, 5:51 a.m. No.12050436   🗄️.is 🔗kun   >>0447 >>0558

Javascript that adds a user's post count after the id (pic related)

We used to have this before but it has been removed for some reason.

Add to Options User JS

 

// iterate each post in the thread.

 

var updatePostCount = function () {

 

$('span.threadCount').empty();

 

$('span.posts_by_id').each(function (v) {

 

var $count = $('<span class="threadCount" style="font-weight:bold"</span>')

 

$(v).after($count);

 

});

 

};

 

// Make it go

 

updatePostCount();

 

// allow to work with auto-reload.js, etc.

 

$(document).on('new_post', function (e, post) {

 

updatePostCount();

 

});

 

});