Skip to content

Instantly share code, notes, and snippets.

@kevshub
kevshub / fluid_gmail.js
Last active November 21, 2016 03:59 — forked from kirbysayshi/fluid_gmail.js
- Removed duplicate timers - Added a remove badge option - Added (Advanced) Growl Notifications, # of new emails and # of unread messages. - Only notify when email counter goes up not down - Added sound notification
window.fluid.dockBadge = '';
function updateDockBadge() {
console.log('check new messages');
var navigation = document.querySelector('[role=navigation]')
var doc = navigation.contentDocument || navigation.ownerDocument;
if (!doc) { return; }