Anonymous ID: 937144 Jan. 24, 2019, 12:10 p.m. No.4890142   🗄️.is 🔗kun   >>0161 >>0180 >>0225 >>0302

Fed up with a certain meme? Make it disappear forever. Add this code to Options User JS

 

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

Anonymous ID: 937144 Jan. 24, 2019, 12:16 p.m. No.4890225   🗄️.is 🔗kun   >>0302

>>4890142

>>4890180

>>4890161

 

The following code adds a Real Time Post Counter to the bottom right of your page.

 

/ Display a replies counter overlay in the bottom right corner /$(function(){ $('head').append('<style>#thread_stats_posts_ovl { '+ 'position:fixed;bottom:15px;right:35px;'+ 'font:38px sans-serif;opacity:0.5;color:#f60;}</style>'); $('body').append('<div id="thread_stats_posts_ovl"/>'); function copyStats() { $('#thread_stats_posts_ovl'). text($('#thread_stats_posts').text());} $(document).on('new_post',copyStats); copyStats();});