Forum Moderators: open
...the GDPR cookie notice...Are you using a script someone else wrote? If so, you'll always be dealing with the limitations of how that script is written. JS is not that complicated. Read a few tutorials and try writing your own code, then you can make it work anyway you like.
Plus, that 3rd party now has control over your pages.