aspiers / aspiers/Discord-custom-nicks-userscript
Doesn't immediately replace usernames after switching channels / pages
- Dominant language
- JavaScript
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
This is a pretty bad bug; apparently `waitForKeyElements` doesn't always trigger when switching channels or pages. I'm not sure what the best way to fix this is, short of just setting a timer to call `replaceAll()` every few seconds or something. Suggestions welcome.
## Workaround
Open up the mappings dialog and hit the `Save` button.
Contributor guide
Research direction
Start by reading the implementation and call sites for `waitForKeyElements` and `replaceAll`, then reproduce the issue by switching channels or pages. Done means usernames are replaced without opening the mappings dialog and pressing Save; no test file is mentioned in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100