Closed NxDs closed 9 months ago
It seems the notifier cannot find the "GMAIL_AT" cookie for your case. Open Gmail in a browser tab, right-click on the page, and press "Inspect". Go to the console tab, type "document.cookie" and press Enter. See if the cookie string contains the "GMAIL_AT" string or not.
GMAIL_AT is there, the problem does not seem to be consistent because since when I opened the issue it started working, then stopped then started working again
So most likely the background worker is crashing. Can you try on a clean profile? https://support.google.com/chrome/answer/2364824
I'll try and comment if it happens again
Hi. I have the same, it will not mark as read on a new clean profile or old. It works if I have a gmail page open. But then I can just mark the mails anyway.
@4576ggv4536 do you get the "core.js -> at" error? What is your OS?
Yes I get the core.js popup. I'm on ubuntu 20.04, Chrome 119.0.6045.159
Let's debug:
Open "chrome://extensions/" and turn on the developer mode. Find the extension, and click on the "Inspect -> Service Worker" Paste the following in the console tab and see if you get the "GAMIL_AT" when you have no open Gmail tab
await chrome.cookies.get({name: 'GMAIL_AT', url: 'https://mail.google.com/mail/u/0'})
Do not share the output, you just need to get an object with {value: '....'}
I get null.
do you get an object when Gmail page is open?
I get a value like this: value : "HHbupN76W852Ds6TZFd8fnPpl-n0rjfQ" Not real value I pasted
I can add that it is the same issue on a Debian 12 and fresh install of chrome, and no other extensions.
What is the address you get when Gmail is open? try with that adress too when page is closed
await chrome.cookies.get({name: 'GMAIL_AT', url: 'https://mail.google.com/mail/u/0/#inbox'})
I just open Chrome and have only default startpage I get
Uncaught TypeError: Cannot read properties of undefined (reading 'get')
at
If I have an gmail tab open I get
{domain: 'mail.google.com', hostOnly: true, httpOnly: false, name: 'GMAIL_AT', path: '/mail/u/0', …} domain : "mail.google.com" hostOnly : true httpOnly : false name : "GMAIL_AT" path : "/mail/u/0" sameSite : "unspecified" secure : true session : true storeId : "0"
Uncaught TypeError: Cannot read properties of undefined (reading 'get')
Did you run the code inside the extension's "service worker"? It looks like the "chrome.cookie" is undefined!
Also, you can try the latest dev edition, which has a backup plan if the cookie is not available. Please give it a try and report back
download the project; https://github.com/inbasic/ignotifier/archive/refs/heads/master.zip extract it and drop the "v3.classic" to the chrome://extensions/ window
Yes I did run it in service worker window.
This output is from the new version on the extension. And it's working, so far. I disabled the 1.1.2 and only have the 1.1.3 active
{domain: 'mail.google.com', hostOnly: true, httpOnly: false, name: 'GMAIL_AT', path: '/mail/u/0', …} domain : "mail.google.com" hostOnly : true httpOnly : false name : "GMAIL_AT" path : "/mail/u/0" sameSite : "unspecified" secure : true session : true storeId : "0" value : "h4r567-FAKEe6r6_h7brhudt"
Tesed on other computer new chrome profile, only the 1.1.3 version installed all working
Version 1.1.2 Pressing archive or delete triggers the notification in the screenshot and doesn't actually delete or archive