aspiers / aspiers/Discord-custom-nicks-userscript

FR: allow substitution templates

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
JavaScript
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Instead of replacing with the text to the right of the `=` sign, it could generate the replacement text from a configurable template which can optionally also use the original nickname. For example, the template (which would be an additional setting) could have values like `%name (%nick)` so that if the mapping contained a line:

jbloggs=Joe Bloggs

then the replacement text would be `Joe Bloggs (jbloggs)`. It could even get fancy and have conditional formatting based on the lengths of `%name` and `%nick`.

Contributor guide

Open the contributing guide

Research direction

Start by locating the userscript's nickname mapping, replacement logic, and settings handling. Define how a configurable template expands %name and %nick, including the requested conditional formatting, then verify that mapped nicknames produce the specified output and that existing replacements still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.