Tag Archives: JavaScript

Reinstating the third gender/sex option on Facebook

I received two copies of the Unlike Us reader in the post yesterday and I’ve started reading some of the other contributions. I highly recommend checking it out. (Reminder: it’s free to download!) But somehow, even seeing my name in print didn’t prepare me for the possibility that someone else might actually read let alone enjoy my essay. (Did I think it’d just sit there, unread, and that’d be cool? Maybe.)

Anyway, I woke up to Tweets from Marc Stumpel this morning, linking to some creative responses to Facebook’s limited gender/sex representation that I hadn’t come across before. Of particular interest is a ‘Facebook Gender Neutrality‘ script, written by Alec Wright, that apparently enables Facebook users to revert back to the ‘other/undisclosed’ gender/sex option that was made unavailable since around 2008.

I had previously seen scripts that change the display of user information in some way (use gender neutral phrasing on Facebook, for example, or even reverse gender/sex terms in all websites), but these only worked locally on the browsers where the script was installed. In this case, However, Alec states, “this is what everyone will see, and not just you”.

I decided I had to try it out. Immediately.

Using a new Firefox browser profile (so I could confirm it works without any scripts installed) I went to Alec’s ‘Facebook Gender Neutrality‘ page and installed Greasemonkey (a popular add-on many may have installed already) and after restarting the browser installed the .js script linked to from Alec’s page. As I understand it, all the script does is add an ’Other/Undisclosed’ radio button to the mobile page where you change your gender/sex status, and this actually alters your account. Incredibly simple, but absolutely brilliant!

Mobile Facebook screen with Alec Wright's 'Facebook Gender Neutrality' script installed

Some quick background info and clarification: Facebook does have an ‘Undisclosed’ option for gender/sex; they just don’t make it selectable. This is from back when it wasn’t mandatory to declare whether you are either male or female. Not all users chose either ‘Male’ or ‘Female’ when they were asked to so you may occasionally see gender neutral terms ‘they’ or ‘their’ on Facebook – though this is becoming rare. So, Facebook’s gender/sex field is not stored as a binary value (either 0 or 1, corresponding to ‘Male’ or ‘Female’); rather, there are three possibilities:

  • 0 is ‘Undisclosed’1
  • 1 is ‘Female’2
  • 2 is ‘Male’

Put simply, Alec’s script makes it possible to select 0 again. And this is why the selection becomes visible to everyone.

After running the script on one of my testing accounts (Anne Drogyne) in a new Firefox profile, I created a new testing account (Funkmaster Jay) using my main Firefox profile and made them become friends. (It’s like playing The Sims!) Below is a screenshot taken from a Firefox profile that has not installed any of Alec’s scripts.

Screenshot of a Facebook timeline that uses gender neutral terminology

As you can see, the gender neutral term ‘their’ is used in the timeline. I haven’t looked much further but I have no reason to suspect this does not work universally for that account.

Finally, I should note that I don’t believe this fix is perfect. But it would be much, much harder to make more meaningful changes on Facebook such as making gender/sex a text field, removing gender/sex status altogether, or even altering system phrases to remove the ‘need’ for gendered terminology at all. However, all of that is close to impossible for non-Facebook developers. Reinstating the ‘Undisclosed’ option to users, especially as these choices become visible to all users, is perhaps the best we can do. Using only a few lines of JavaScript, I think Alec has done some amazing work.

So, to summarise, if you don’t like Facebook’s way of representing you in relation to a gender/sex binary, DO THIS! If you’re actually okay with being either male or female on Facebook but still think this is an option that should be available, TELL EVERYONE YOU KNOW ABOUT THIS!

Lastly, if you appreciate this script and what is means socially, email Alec and say so – it’s always nice to get feedback =) Alec’s email address is described cryptically at the bottom of this page, but it’s also written at the top of the .js script file if you open it in a text editor.

I’m composing an email right now.

1. I say that Facebook treats ‘not male or female’ as ‘undisclosed’ rather than ‘other’ because, well, the system design does not allow for ‘other’ as an option – options are interpreted as either ‘Male’, ‘Female’, or ‘I haven’t told you yet’. In short, Facebook as a system subscribes to and reinforces the binary theory of gender/sex. Of course, this doesn’t mean users can’t choose this third option as a way to present as ‘other’ – gender/sex performance can be interpreted in many ways the system didn’t intend, depending on the community/culture. I think Alec’s ‘Other/Undisclosed’ wording is correct here, but I just wanted to be clear about my own, more restricted terminology when referring to Facebook itself.

2. Interesting to note, this is one of the very few times I’ve encountered a system where a gender/sex field doesn’t list ‘Male’ before ‘Female’ (even though it’s alphabetically backwards) in coded representation.