Beautiful technical solution. Wouldn’t it depend on all website creators and all browser makers to pretty much commit to changes in their code at the same time, before the first consent banner would actually go away? How do you get them to do that?
Of course user agent sniffing tends to cause a lot of problems, so this probably isn't a good idea.