uBlock Origin Element Zapper can do that in a point-and-click fashion.
(Presuming the site doesn't update/revise element identifiers frequently. See FB for one which apparently does this, per recent HN submissions.)