Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to hide the notification count in the twitter title #89

Closed
wants to merge 6 commits into from

Conversation

noopnoop
Copy link

@noopnoop noopnoop commented Mar 2, 2022

The purpose of this PR is to hide the notification count in the title of twitter.
It's a setting that can be set to true (DO hide notifications) or false (DON'T hide them).

If you refresh the page, it works just as you'd expect.
However, if you're on the page and change the setting, things get a little complicated.
There's 3 implementations I could think of-

  1. Switching from true->false requires a refresh, switching from false->true kicks in immediately.
    This is what I went with. The user can see right away when they switch from false to true that it's working.
    If they switch from true to false, then it kind of just reads as "I don't have any new notifications."

  2. Switching from true->false requires a refresh to kick in, switching from false->true requires a refresh to kick in.
    This feels worse than number 1, however it would be more consistent.

  3. Everything kicks in immediately.
    While this is ideal, to make the true->false case work dynamically you'd need to keep track of the notification count as the user is browsing twitter. At the very least you'd have to make a couple new global objects that communicate with main.js/changeTitleNotifications, I think. It would be pretty messy and doesn't really feel worth it.

@ghost
Copy link

ghost commented Apr 12, 2022

#101

@ghost ghost self-requested a review October 16, 2022 01:33
@ghost ghost mentioned this pull request Jan 5, 2023
@ghost
Copy link

ghost commented Jan 9, 2023

9f7c646 — finally landing this, thanks for helping @noopnoop!

@noopnoop
Copy link
Author

np :)

@ghost ghost closed this in #141 Jan 18, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant