aspiers/Discord-custom-nicks-userscript

FR: allow substitution templates

开放

#3 创建于 2021年6月28日

 (0 条评论) (0 个反应) (0 位负责人)JavaScript (0 个派生)github user discovery
enhancementhelp wanted

仓库指标

星标
 (3 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南