Anonymous 10/15/2019 (Tue) 03:59:00 No.17757 del
>>17738

small bug, corrected below. /use or /ignore, youre call frens.


var getLinks = () => Array.from(document.querySelectorAll('a.quoteLink'));

var quotedPost = (link) => /^>>[0-9]+$/.test(link.innerText);
var pbQuotedPost = (link) => link.pathname != document.location.pathname;
var relabelQuotedPost = (link) => link.innerText = link.innerText + ' /pb';
var relabelQuotedPosts = () => getLinks().filter(quotedPost).filter(pbQuotedPost).forEach(relabelQuotedPost);

relabelQuotedPosts();

var interval = setInterval(relabelQuotedPosts, 5000);