Get rid of Reels

I suppose the real answer is to be more disciplined about using Facebook at all, but I’m disgusted with myself for wasting time on Reals when I do get drawn in. Is there a nicer and less fragile way to identify the block and get rid of it? Not sure if any of the CSS classes are stable.

let realsCreate = document.querySelector('a[href="/reels/create/"]');
realsCreate.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.display = 'none';

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *