Each post is just a div with data-id, that appear and disappear as you scroll the feed.
To hide an activity you can just execute this oneliner in the console.
document.querySelector("[data-id='urn:li:activity:6866019474424827904'").hidden=true;
To make it work, just use MutationObserver