orestbida/cookieconsent ? reverse-engineered prompt
Reverse engineered prompt
Build me a lightweight cookie consent plugin for websites, written in plain JavaScript, that helps a site stay GDPR compliant.
I want a small banner that asks for cookie permission, lets people accept or reject, and gives them a way to change their choice later from a settings panel. It should be easy to drop into any site, work across browsers, and feel fast and simple. Please include a clean default UI, support for a cookie policy link, and enough configuration so the text, buttons, colors, and behavior can be customized without much effort.
Make sure it can remember the user choice with cookies or local storage, and only load tracking cookies after consent when needed. If there are docs or examples that would help, include a demo page or playground so I can test the different states quickly. If you need to check current browser behavior or best practices, look up the latest docs online first.
Are you gonna build this?
make sure you review the code using coderabbit