Feedly Fluid App with Unread Count

As there’s currently no native OS X app supporting Feedly yet1, the official blog of Feedly provided a workaround, which utilized Fluid, “an app that can turn any web page into desktop app”, to create a standalone Feedly app. They even provided an original Feedly icon.

Fluid is free for use. If you are willing to pay an extra fee of $4.99,2 you can unlock a set of premium features including “the ability to enter full screen, options to have separate cookies storage (which mean you can run multiple of Feedly accounts at once), use Userscripts and Userstyles, and pinning the app into menu bar”.

One of the advantages to have Userscripts enabled is that you can show a badge of the unread counts on the dock icon. Fluid supports showing unread count for Gmail, Google Reader, and Facebook by default. However, since Feedly doesn’t show unread count in the Title of the web page, the default userscript for the services above won’t work for Feedly3.

Don’t worry. Here is the userscript for Feedly:

window.fluid.dockBadge = '';
setTimeout(updateDockBadge, 1000);
setTimeout(updateDockBadge, 3000);
setInterval(updateDockBadge, 5000);

function updateDockBadge() {
    var newBadge = document.getElementsByClassName('categoryUnreadCount')[0].innerText;
    window.fluid.dockBadge = newBadge;
}
Setting of userscript

Quite simple. But works. Cheers.


  1. Eyes on you, Reeder.
  2. Yes, I did.
  3. It works for AOL Reader though.

Lucifr

Read more posts by this author.

Beijing, China http://lucifr.com