The FBPurity.com browser plugin can do that and a lot more. I've blocked stuff other people Like or Share so I only see what my friends personally post. It makes FB a lot less worse.
Edit: Someone else mentioned the Social Fixer browser plugin which I'd never heard of. On AlternativeTo.net, FBPurity has 33 hearts and Social Fixer has 11. I don't know if that is accurate or not. It may depend on what features you want. Social Fixer is in browser plugin stores. FBPurity used to be but now isn't and must be downloaded directly from their website.