Anonymous ID: e6057a Jan. 12, 2021, 8:17 p.m. No.12493232   🗄️.is 🔗kun   >>3278 >>3735

Parler Owner fears for Life

Parler CEO John Matze says his life has been threatened

John Matze, the CEO of Parler (left) said that he fears for his life after tech companies closed his app down on Monday for promoting unrest. Parler's chief policy officer said the move was Orwellian.

Anonymous ID: e6057a Jan. 12, 2021, 8:28 p.m. No.12493426   🗄️.is 🔗kun

What did people think of the [Blacklist] button.

Useful or a waste of time?

 

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