Anonymous ID: fcc0d1 Dec. 20, 2018, 5:58 a.m. No.4390053   🗄️.is 🔗kun   >>0063 >>0087 >>0208

Wanna make the bread SUPER COMFY??? You can blacklist any user you want. I've been doing this for a few days and IT. IS. AWESOME.

 

Go to OPTIONS and paste this code in JS USER:

 

'//' Blacklist Button - Permanently Blacklist Images

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

Anonymous ID: fcc0d1 Dec. 20, 2018, 6:30 a.m. No.4390265   🗄️.is 🔗kun   >>0275

>>4390208

 

when going in to JS USER, don't erase any of the code. Just ADD the code I gave you. The entire code. Don't leave anything out.

 

When done, be sure to hit "save" at the bottom.