Anonymous ID: 8c0c30 March 9, 2023, 8:27 a.m. No.18474004   🗄️.is 🔗kun   >>4073

>>18473993

Try this auto PB script

 

/ Auto PB /

$(document).ready(function () {

// Get a list of all the postID's in this bread

var posts = [];

 

var updatePosts = function () {

posts = [];

// Get the OP ID of this bread

var OP = parseInt($('div.post.op a.post_no:eq(1)').text());

posts.push(OP);

 

$('div.post.reply').find('a.post_no:eq(1)').each(function () {

var postID = parseInt($(this).text());

posts.push(postID);

});

};

 

// Interate all posts and look for links to update

var showpbLinks = function () {

$(this).find('div.body a:not([rel="nofollow"])').each(function () {

var postID;

if (postID = $(this).text().match(/^>>(d+)$/))

postID = parseInt(postID[1]);

else

return;

 

// Search the posts array for this post

var isInBread = $.inArray(postID, posts);

// MAGIC

if (isInBread === -1) {

$(this).after(' <small>(pb)</small>');

}

});

};

 

// Make it go

updatePosts();

$('div.post.reply').each(showpbLinks);

 

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

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

if ($(post).is('div.post.reply')) {

updatePosts();

$(post).each(showpbLinks);

}

else {

updatePosts();

$(post).find('div.post.reply').each(showpbLinks);

}

});

});

Anonymous ID: 8c0c30 March 9, 2023, 8:42 a.m. No.18474105   🗄️.is 🔗kun

>>18474073

Open the [Options] panel.

Click User JS on the left.

Paste the Auto PB code in the window then save.

 

Check the notables at the top of the page. They should all have a green (pb) now so you can always tell when a link references a post outside this bread.

 

If you hate it, just delete the pasted code from user js in options and save.