Anonymous ID: 70fe64 Jan. 12, 2020, 9:07 a.m. No.7792427   🗄️.is 🔗kun   >>2436 >>2465 >>2466 >>2538 >>2546 >>2604

If anybody wants a "blacklist" for images so they will not show again, here is the j/s.

At the bottom of the script where it says 'NUKE' you can change that to make it say whatever you want.

When you click the button, it "nukes" all the images, and removes the post.

Those images will not show in future breads.

Go to Options-User J/S insert below script

Go to Options-Storage Export and there you will find all the "nuked" images.

 

// Nuke Button - Filters Images And User.

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').hide(); 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='NUKE'></input>"); } }) }

setInterval(function () { loadImageBlacklist(); removeBlacklistedImages(); addNopeButtons(); }, 500);