Screenshot / Code Snippet

chat room signatures with pronouns


It's hard to miss these days - the Code of Conduct is about to change. It will emphasize the importance of using the correct pronoun when referring to a user in third person. This most often comes up in chat, and some users already have information about which pronouns to use in the 'about' field in their chat profile, especially when that is not already clear from their username and/or avatar. Version 2.0 of the script performs the same feat on Q&A pages, but uses the Q&A profile instead.

In the Teachers' Lounge, an idea was proposed to pull that information from the user profile into the chatroom itself through a userscript. Stack Exchange Chat hasn't received updates in quite a while, so this idea isn't likely to be implemented soon. A userscript like this is the next best thing.

Installation / configuration

It's a userscript which means you need a userscript manager installed in your browser if you don't have one already. Just Google for Violentmonkey or Tampermonkey, how to install them depends on your browser.

The script itself can be installed via this link; source code can be found here.

After installation, you can reload this very page and check my usercard to verify if the script has been installed:

usercard with 'Script successfully installed' message

To edit your chat profile to add your own pronouns, go to chat, click your username in the top bar and then the edit link for the 'about' field:
chat profile with edit link
Editing your Q&A profile works similarly, but you can also click this link, change your profile and click "Save and copy changes to all public communities".

The script looks (case-insensitive) for the following ways of specifying pronouns:

  • A link to Pronoun Island, e.g. 'http://my.pronoun.is/he'
  • An explicit specification starting with 'Pronouns:' and ending with a period, newline (or just the end of the text), e.g. 'Pronouns: they/them.'
  • Pronouns joined by forward slashes, e.g. 'she/her'; a full list of supported pronouns can be found here which is sourced from Pronoun Island. If your pronouns aren't in the list, feel free to mention them here or make a pull request.


Tested with Violentmonkey in Firefox and Tampermonkey in Chrome on macOS, but it's likely to work on all browsers and platforms. (Please let me know if it doesn't!)


Post a comment or answer here, or create an issue/pull request on GitHub.

  • 2
    Love the idea of this tool! I had already added my pronouns via a link to pronoun.is in my 'about' ("Clearly a dragon. my.pronoun.is/she ") a little while ago. Might it be an idea to add functionality to support that link specifically? – Elva Oct 3 at 14:33
  • Thank you, that's a good idea (I think somebody mentioned it in chat as well), I'll have a look. – Glorfindel Oct 3 at 14:38
  • For those of us using GreaseMonkey, we can replace GM_addStyle with greasemonkey.win-start.de/patterns/add-css.html and we'll need to add an @require for jquery. – Matt Ellen Oct 3 at 15:23
  • @Elva this is now supported in v1.1. I did notice that when I click on such a link (added by the script) in chat, it disappears. I'm working on that ... – Glorfindel Oct 3 at 20:45
  • @MattEllen I'd expect GreaseMonkey to support GM_addStyle; it does start with GM. If you have any idea how to fix it while keeping the script cross-user-manager-compatible, I'd really appreciate it. – Glorfindel Oct 3 at 20:47
  • @glorfindel apparently the latest version of greasemonkey removed that function 🤷‍♂️ that's all the wiki says. I can have a look over the weekend. The thing I linked to might be cross browser compatibile – Matt Ellen Oct 3 at 21:43
  • @Glorfindel When I click the "script can be installed via" link, Chrome tells me "Apps, extensions, and user scripts cannot be added from this website". Any suggestions? (and sorry if this is a novice question...) – LarrySnyder610 Oct 4 at 0:51
  • @LarrySnyder610 you'd have to install a userscript manager first, like Tampermonkey or Violentmonkey. Most people coming here are familiar with userscripts and how they work, but it's definitely an oversight on my part and I'll update the installation instructions. Thank you! – Glorfindel Oct 4 at 6:56
  • @Glorfindel awesome, that worked, thanks! – LarrySnyder610 Oct 4 at 13:23
  • I downloaded this just now, it's my first userscript. On Firefox Mac with Tampermonkey, this doesn't seem to change anything—can I see a screenshot of what parts of the page should change? – Stormblessed Oct 5 at 3:39
  • Oh they just weren't formatted right. – Stormblessed Oct 5 at 3:44
  • Could you tell me what you mean by 'not formatted right'? Do you have a screenshot? – Glorfindel Oct 5 at 8:01
  • I'd suggested this on another post and was finally told this was a thing. Upvoted! – Paul Beverage Oct 10 at 19:33
  • Assuming I haven't misunderstood, there's quite a few unincluded pronouns. But I guess the Pronouns: <text> mitigates that? – Zoe the transgirl yesterday
  • Yes, too much chance for false positives. I suppose some software developers have the text vi/vim in their profile but that does not mean they're pronouns... – Glorfindel yesterday

Can you implement some kind of support for those of us who are fine with any pronoun, i.e., have no preference?

I realise I could probably write something like


into my profile, but that would be weird for those who visit my profile and are not aware of this script.

  • 1
    This is now supported in v1.1: you could write e.g. 'Pronouns: whatever you prefer.' – Glorfindel Oct 3 at 20:44

Seems like there are similar requests for users' info on Chat.SO that fails due to CORS-blocking. You might want to disable the script for Chat.SO so we don't make unneccessary requests that fail, or implement a workaround using GM_xmlhttpRequest.

Workaround I made: https://github.com/samliew/SO-mod-userscripts/blob/master/lib/common.js#L41

  • oh wait, just dynamically set the location.hostname, and don't hard-code to chat.stackexchange.com – Samuel Liew Oct 4 at 11:07
  • I realized this as well, I always make mistakes like this. chat.stackexchange.com is hardcoded ... – Glorfindel Oct 4 at 11:07
  • @Glorfindel want me to make a patch? – Samuel Liew Oct 4 at 11:08
  • This is now fixed in v1.2. – Glorfindel Oct 4 at 11:16

Can this be made to work on the transcript? It doesn't, currently.

Pronoun doesn't show on transcript

  • I considered that, but I'm not sure if it's really useful. You need somebody's pronouns when you want to post a message, and that can only be done in the room itself, so the Pronoun Assistant will activate by then. – Glorfindel Oct 5 at 8:00


Strip out the http://my.pronoun.is/ portion of the pronoun tag under the username, seeing as how you can't click on it anyway.

New contributor
MBraedley is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .