Anonymous ID: a9b197 Dec. 16, 2018, 2:42 p.m. No.4338558   🗄️.is 🔗kun   >>8575 >>8584 >>8595 >>8637

Fed up seeing the same shilltard pics over and over? Use the Blacklist Button to PERMANENTLY filter them. Make the tards work overtime!

 

// Blacklist Button - Permanently Blacklist Imagesvar imageBlacklist = [] ;function loadImageBlacklist() { JSON.parse(localStorage.imageBlacklist || "[]").forEach(addToImageBlaclist); }function saveImageBlacklist() { localStorage.imageBlacklist = JSON.stringify(imageBlacklist); }function addToImageBlaclist(md5) { if (md5 && -1 = imageBlacklist.indexOf(md5)) imageBlacklist.push(md5); }function blacklistPostImages(post) { $(post).find('img.post-image').each(function (i, el) { var md5 = el.getAttribute('data-md5'); addToImageBlaclist(md5); el.remove(); }); }function removeBlacklistedImages() { var removed = 0; $('img.post-image').each(function (i, el) { if (-1 ! imageBlacklist.indexOf(el.getAttribute('data-md5'))) { el.remove(); removed += 1; } }); return removed; }function onNopeClicked(event) { event.preventDefault(); event.stopPropagation(); loadImageBlacklist(); var post = $(event.target).closest('.post'); blacklistPostImages(post); removeBlacklistedImages(); saveImageBlacklist(); }function addNopeButtons() { $('.post').each(function(i, post) { if ($(post).find('.nope').length === 0) { $(post).prepend("<input type='button' class='nope' onClick='onNopeClicked(event)' value='Blacklist'></input>"); } }) }setInterval(function () { loadImageBlacklist(); removeBlacklistedImages(); addNopeButtons(); }, 500);

 

Add the code to your Options User JS

Anonymous ID: a9b197 Dec. 16, 2018, 2:47 p.m. No.4338616   🗄️.is 🔗kun

>>4338595

The blacklist button gets the md5sum of the images you choose to filter and adds them to a database. Once blacklisted, you'll never see those images again, even in future breads ;)