aspiers / aspiers/Discord-custom-nicks-userscript

Doesn't immediately replace usernames after switching channels / pages

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
bug help wanted
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.