A script that allows members to change their profile gender.

Page 1 of 1 [ 3 posts ] 

Soliloquist
Velociraptor
Velociraptor

User avatar

Joined: 13 Oct 2011
Age: 55
Gender: Male
Posts: 467

31 Mar 2019, 1:45 pm

Gender and diagnosis profile changer.

This script was created primarily for members who have incorrectly changed their
gender in the User Control Panel edit profile section and are unable to reverse those
changes.
Whilst creating the script I decided to address other issues that members
have periodically raised, notably the lack of range of gender identities, and
most recently, the lack of current diagnostic profiles.

Once installed the script will add (if not showing) or replace the
existing gender drop-down option menu with an option menu populated
with the following options:

Image

The gender can be changed up to three times, the third being permanent,
after which the option menu will no longer be shown.

The script will also replace the existing diagnosis drop-down option menu with
an option menu populated with the following options:

Image


Compatibility

The script has been tested with Tampermonkey and Violentmonkey
on the following browsers:
Chrome
Firefox
Slimjet
Opera
Vivaldi
Seamonkey (Using the ported version of Greasemonkey userscript manager.)


Installation

The script needs a userscript manager add-on to be installed into the browser.
I recommend Tampermonkey but Violentmonkey is an equally good
open source variant.

Both Tampermonkey, Violentmonkey and the script
will be made available at the link below. (Subject to moderator approval)
Install the userscript manager of your choice first, then the Wrongplanet gender changer userscript.

https://soliloquist.droppages.com/


Video showing the installation process and usage of the script



The_Walrus
Forum Moderator
Forum Moderator

User avatar

Joined: 27 Jan 2010
Age: 29
Gender: Male
Posts: 8,811
Location: London

31 Mar 2019, 4:02 pm

This looks really great! Thanks.

I'd like to know a bit more about how exactly your script works. Does it interfere with WrongPlanet's database or does it merely locally change cosmetic elements for people who have the script installed?

Would you be willing to release the source code for others to scrutinise?



Soliloquist
Velociraptor
Velociraptor

User avatar

Joined: 13 Oct 2011
Age: 55
Gender: Male
Posts: 467

01 Apr 2019, 11:07 am

The_Walrus wrote:
This looks really great! Thanks.

I'd like to know a bit more about how exactly your script works. Does it interfere with WrongPlanet's database or does it merely locally change cosmetic elements for people who have the script installed?

Would you be willing to release the source code for others to scrutinise?


The script removes the gender (if found) and diagnosis drop-down menus
from the table in the edit profile form and replaces them
within the forms table with new versions with the extra options.
That’s it. Everything after this point is business as usual and
basically proceeds as follows:-

When you click on the update profile button the string values in the selected
options drop-down menus, along with the content of the edit boxes are
collected and sent to the database on the server.
The drop-down menus string values are then placed in the
allocated gender or diagnosis fields in the database.