Anonymous ID: 7c0375 May 14, 2020, 11:51 a.m. No.9172499   🗄️.is 🔗kun   >>2519

Really want to thank the anon who posted the script for the board that allows a blacklist for pics that also makes it so much easier to get rid of the kiddie pron from the perverts, the pro/anti-jew/semite moronials, and it is so effective that doing it to one of their childish - which suits, I guess, since they are so much into the kiddie pron stuff - little hook nose cartoons.

 

Still need to do the filter ID+ - the plus is necessary AND effective because the kids like to answer each other and with one filter you can get rid of several of them of the bread with one click.

 

So thanks to whomever designed, wrote and provided the script.

Anonymous ID: 7c0375 May 14, 2020, 11:56 a.m. No.9172570   🗄️.is 🔗kun

>>9172519

This is better. PUt it in the section of "Options" for user/js:

 

var 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);