How to enable Gmail notification for Safari 6 in Mountain Lion
If you're like me who uses Safari, and finds Gmail in browser most comfortable to use, you might want to enable notification from Gmail in Safari 6. Notification Center in Mountain Lion does support websites in Safari to send notifications, but by now Gmail does not ask for permission to send notifications. Fortunately Gmail uses html5 notification, which is supported in Safari 6. We can manually request permission from Safari for Gmail.
- Enable Develop menu. Safari->Preferences->Advanced: Check "Show Develop menu in menu bar".
- Develop->Show Web Inspector. The console will show at bottom. Paste in following command in the console and press Enter. 
- If the alert box shows
0, it means
mail.google.comsuccessfully gets notification permission. Send yourself an email with a different email address to test.
 Code stole from http://dangercove.github.com/html5-notifications/