Personal CSS and JavaScript allows you to customize how Memory Alpha looks and behaves in a way that affects only your account. Any logged in user can customize the site like this by editing one or several user subpages. This allows you to view your own choice of fonts, colors, element positions, and much more.
CSS[]
To customize how all Fandom wikis look for you using CSS, create and edit Special:MyPage/global.css at Community Central. CSS on this page applies to all Fandom wikis while you are using the FandomDesktop skin.
If you want to apply personal CSS on just Memory Alpha, add it to Special:MyPage/common.css, which applies to all skins, or Special:MyPage/fandomdesktop.css (FandomDesktop) or Special:MyPage/fandommobile.css (FandomMobile).
JavaScript[]
As a security checkpoint, you must manually enable personal JavaScript in your preferences before it will run on your account. Before doing this, please double-check any existing personal JavaScript you have and make sure you are happy with it. If you're not sure where to check, continue reading.
To customize how all Fandom wikis look for you using JavaScript, create and edit Special:MyPage/global.js at Community Central. JavaScript on this page applies to all Fandom wikis while you are using the FandomDesktop skin.
If you want to apply personal JavaScript on just Memory Alpha, add it to Special:MyPage/common.js, which applies to all skins, or Special:MyPage/fandomdesktop.js (FandomDesktop) or Special:MyPage/fandommobile.js (FandomMobile).
JavaScript errors can break some of Memory Alpha's basic functionality – be careful! Do not include JavaScript that you do not understand or that comes from sources that you do not fully trust or that are not secure.
Neither Memory Alpha nor Fandom can be held responsible for any issues that occur as a result of the use of personal JavaScript. It is your responsibility to maintain your personal JavaScript (and CSS).
Advanced notes[]
As noted on the customization policy, personal CSS and JavaScript are areas in which you can make any tweaks you like (so long as they do not adversely affect any other users).
Only account owners can edit their own CSS and JavaScript pages – other users on Memory Alpha, including admins, cannot edit another user's personal CSS or JavaScript pages.
You can also target specific communities, such as Memory Alpha, in your global CSS and JavaScript:
- CSS: a wiki-specific class is available on the <body> tag, based on the database name of a community. The format is: .wiki-[database name]. Memory Alpha's database name is enmemoryalpha.
- JavaScript: the wikiDbName (database name) variable can be used to target a community. (Again, Memory Alpha's database name is enmemoryalpha.)
Troubleshooting[]
If a JavaScript or CSS file is adversely effecting your experience on Memory Alpha, there's an easy way to circumvent and locate the issue. There are several commands you can add in a query string to the end of the URL of the page you are viewing. The following table lists them and explains their functions.
Add a question mark (?) between the command and the URL. If you wish to include multiple commands in the URL, separate each with an ampersand (&).
Command | Role |
---|---|
useusercss=0 | Disables all CSS that was added into your personal CSS pages. |
useuserjs=0 | Disables all JS that was added into your personal JS pages. |
usesitecss=0 | Disables all CSS that was added into the wiki's locally-defined CSS. |
usesitejs=0 | Disables all JS that was added into the wiki's locally-defined JS. |
safemode=1 | Disable all custom CSS and JS, sitewide and personal. |
See also[]
Help |
---|