Created
February 19, 2018 19:59
-
-
Save dlo/a4de061aed130a2e59258b800c74225c to your computer and use it in GitHub Desktop.
Fluid.app GitHub badge icon with # of open issues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const $$ = (selector) => document.querySelectorAll(selector) | |
let items = $$("nav.reponav span.Counter"); | |
if (items.length > 0) { | |
window.fluid.dockBadge = items[0].innerText; | |
} else { | |
window.fluid.dockBadge = ""; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment