我想在我的网站上集成一个按钮,以便它为特定网站删除和创建新的 cookie

I want to Integrate a button onto my website such that it deletes and creates new cookies for a specific website

我一直在尝试制作一个 html 脚本和 js,以便它修改特定网站的 cookie,有人可以帮助我吗?

如果这是一个扩展,您可以使用 https://developer.chrome.com/docs/extensions/reference/cookies/ 获取其他网站的 cookie 并删除它们,使用 chrome.cookies.getAll 和 chrome.cookies.remove