How do all these browser plugins, notifiers, etc. check your gmail unread count?
I'm trying to write a Safari Extension (which happens to be in javascript but I don't think it matters) and I can't figure out how to parse the Gmail atom feed ( https://mail.google.com/mail/feed/atom ) to get the unread count.
Thanks,
Check Google API.
From within a Safari extension, you should be able to do cross-domain XMLHttpRequest
and use the responseXML
property to access the DOM. However, you need to configure the extension to be able to access Google's servers. See this question .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.