diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index a63e164..f0fb629 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -234,6 +234,10 @@ } }); + if (getParameterByName("username")) { + $("#custom_username_field").val(getParameterByName("username")); + } + if (getParameterByName("forcefocus") == "1") { if (document.hasFocus()) { primeEmbed(); diff --git a/webapp/titanembeds/templates/card_queryparams.html.j2 b/webapp/titanembeds/templates/card_queryparams.html.j2 index 7b26578..eda8ea9 100644 --- a/webapp/titanembeds/templates/card_queryparams.html.j2 +++ b/webapp/titanembeds/templates/card_queryparams.html.j2 @@ -42,6 +42,11 @@
Eg: theme=DiscordDark +
  • + username=<string>
    + Prefills the guest username field with the given username.
    + Eg: username=Rainbow%20Dash +