GitHub-userscripts
GitHub-userscripts copied to clipboard
Github Title Notification is broken
it always shows heart even if there is no new notifications present.
I'm having the same problem. It seems to happen when I'm browsing a repo's Issues.
@veksha I was able to make a workaround. Replace https://github.com/Mottie/GitHub-userscripts/blob/bc9181cd5d17084aa9f226a0a7cfbb0cd4045c1f/github-title-notification.user.js#L30
with:
hasUnread = !mail.hasAttribute("hidden") ? true : false;
I got it working with
hasUnread = mail ? !mail.hidden : false;
Sorry, lots of personal stuff going on that I haven't had a chance to actually commit this fix.
I got it working with
hasUnread = mail ? !mail.hidden : false;
Sorry, lots of personal stuff going on that I haven't had a chance to actually commit this fix.
No problem, I'm just glad you've made this amazing repo.
I didn't do a pull request because I knew you'd have a more eloquent way to fix it; I only dabble in JS 🙂
Is it just me or is changing the notification indicator symbol not working?
yes, another bug.
Oo, I see why.
Change: https://github.com/Mottie/GitHub-userscripts/blob/bc9181cd5d17084aa9f226a0a7cfbb0cd4045c1f/github-title-notification.user.js#L52
To:
GM_setValue("indicator", val);
Then refresh page
---edit: same for interval:
Change: https://github.com/Mottie/GitHub-userscripts/blob/bc9181cd5d17084aa9f226a0a7cfbb0cd4045c1f/github-title-notification.user.js#L59
To:
GM_setValue("interval", val);
Nice. If you use Windows, press Win+.
and you can use emojis :D
nice work, @TFWol ! thank you.