Consent-O-Matic is a free browser extension from Aarhus University. It recognises the common cookie consent pop-ups and fills them in with the choices you set once, so you can refuse tracking everywhere without clicking through every banner.
It only handles pop-ups from consent platforms it knows, so some banners remain, and a site that ignores your answer can still track you. Pair it with uBlock Origin.