Help:JavaScript and CSS Cheatsheet

This cheatsheet lists all the JavaScript and CSS files you can modify to enhance your favorite wikia and your general Wikia experience. The links to scripts and stylesheets below point to the wikia you're viewing this help page on.

Please be aware that edits to these files may not take effect instantly - you may need to wait a couple of minutes and clear your browser cache.

Stylesheets
The most common choice is highlighted:

Common.css
There is also MediaWiki:Common.css.


 * On wikias created before July 2014
 * MediaWiki:Common.css is automatically used for Monobook but not the main Wikia skin. So, if you want to use MediaWiki:Common.css to create rules for both the Wikia and Monobook skins, you have to load it into MediaWiki:Wikia.css with an  rule. See Help:Including additional JavaScript and CSS for further information. If you use this, make sure to clean up any old CSS in MediaWiki:Common.css before importing it, otherwise it may cause unexpected effects. These wikias may also request that their configuration be changed to allow for Common.css to affect both Monobook and the main Wikia skin.


 * On wikias created after July 2014
 * MediaWiki:Common.css by default is loaded for both Monobook and the main Wikia skin. The contents will automatically be added to the top of both MediaWiki:Wikia.css and MediaWiki:Monobook.css in a single file. This doesn't matter for most wikis, but if you use  rules (like for importing custom fonts), they should be added to the top of MediaWiki:Common.css.

JavaScript
The most common choices are highlighted:

Caching issues
Every file you download from the Internet gets cached. Normally that's great because it reduces traffic both for your own device and for Wikia's servers, but it becomes a problem when it comes to testing design changes. It may take a several hours before your changes take effect - unless you use the following tricks:

More often than not, that will be enough, but - especially when you test your edits with a different browser - you will need to purge Wikia's caches as well. Go to the URL bar of your browser and append  to the URL like so:



needs to be rewritten to:



If nothing else seems to help, it might help to have a little patience. After a few hours each and every cache between you and Wikia will have updated.