This is a script that will remove the cookies of the chrome / chrome like browsers. it's made for chrome 108. But hopefully will continue to work.
link to the JS code
Edit the list of sites first.
then Navigate to chrome://settings/content/all?search=cookies and open the dev tools / console. paste the text and wait. When it's done: Scroll down the page and run doTheDeletion() again. after it's done, hit f5 on the page. Now all but the important cookies should be deleted.