Erasing a specific cookie from google chrome with AHK?

Get help with using AutoHotkey and its commands and hotkeys
User avatar
eblanc
Posts: 71
Joined: 08 May 2019, 14:41

Erasing a specific cookie from google chrome with AHK?

31 Oct 2019, 11:22

Just looking for some brainstorming here.

Basically my work, will at least once every two days. Lock my account, and the only way to fix it (unless developers fix it on their end...) is to clear cookies.

I used to clear "ALL" cookies but then I would have to re-login to all other sites, etc..

I've found the exact cookie I gotta erase. However it's meshed in a single text/hex file that is unreadable, the way chrome stores cookies.

So I think I have to access it/erase it from google chrome itself.

Any ideas on what would be the best approach? just looking to brainstorm a little here.

Thank you.
AHKStudent
Posts: 1021
Joined: 05 May 2018, 12:23

Re: Erasing a specific cookie from google chrome with AHK?

31 Oct 2019, 13:15

I found this

Delete specific cookies:
  • On your computer, open Chrome.
  • At the top right, click More Settings.
  • At the bottom, click Advanced.
  • Under "Privacy and security," click Site settings.
  • Click Cookies See all cookies and site data.
  • At the top right, search for the website's name.
  • To the right of the site, click Remove .
Getfree
Posts: 219
Joined: 12 Oct 2014, 18:00

Re: Erasing a specific cookie from google chrome with AHK?

31 Oct 2019, 14:57

Just create a bookmark with this URL:
javascript:void(document.cookie = 'cookie_name=; Max-Age=-99999999; path=/')

The red parts must match exactly the cookie you want to delete.

This is a called a "Bookmarklet" by the way.
Whenever you click that bookmark while being on the page that contains that cookie, the cookie will be removed.
tmplinshi
Posts: 1600
Joined: 01 Oct 2013, 14:57

Re: Erasing a specific cookie from google chrome with AHK?

31 Oct 2019, 22:33

Clear site data from the Command Menu

Press Control+Shift+P to open the Command Menu and then run the Clear Site Data command to clear all data related to the page, including: Service workers, localStorage, sessionStorage, IndexedDB, Web SQL, Cookies, Cache, and Application Cache.
Image

Chrome extention EditThisCookie

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], famko, Sharon, teadrinker and 35 guests