Skip to content

Instantly share code, notes, and snippets.

@dlo

dlo/userscript.js

Created Feb 19, 2018
Embed
What would you like to do?
Fluid.app GitHub badge icon with # of open issues
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