Skip to content

Instantly share code, notes, and snippets.

@laacz
Last active August 3, 2022 00:23
Show Gist options
  • Save laacz/6317f8fd11bb6a9aa4f9e452e724f3b5 to your computer and use it in GitHub Desktop.
Save laacz/6317f8fd11bb6a9aa4f9e452e724f3b5 to your computer and use it in GitHub Desktop.
If you have more than 1k unread entries in Feedly, this is what you do to get full counts

This replaces Feedly unread items counter with actual unread counts, when it's being shown as '1k+'.

document.querySelector('#feedlyChrome__leftnav-wrapper > div > nav.LeftnavList > div.LeftnavList__feed-list > div:nth-child(2) > div.MockLink.LeftnavListRow.LeftnavListRow--selected > span.LeftnavListRow__count')
.innerText = Array.from(document.querySelectorAll('.LeftnavListRow__count')).map((val) => val === "1K+" ? 0 : parseInt(val.innerText, 10)).reduce((a, b) => a + b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment