What!? What’s the benefit of this from a site’s POV? Your technical solution is completely out of touch with real goals and incentives.
This requirement to constantly ask the user while using these dark patterns is what makes normal people just give up and "accept".
If the page is expected to ask the browser which preferences the user has set regarding the cookies, then this problem is gone, because the page no longer is expected to ask a person via a popup.