aspiers/Discord-custom-nicks-userscript

FR: allow substitution templates

Ouverte

#3 ouverte le 28 juin 2021

 (0 commentaire) (0 réaction) (0 personne assignée)JavaScript (0 fork)github user discovery
enhancementhelp wanted

Métriques du dépôt

Stars
 (3 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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.

Guide contributeur