Wikia

GTA Wiki

Help:Global CSS and JS

Talk0
9,658pages on
this wiki
Revision as of 06:02, September 10, 2010 by Gta-mysteries (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

You can set global CSS and JavaScript on Wikia by editing special subpages of your user page. Any changes you make will take effect on any Wikia wikis you visit while logged in.

What you can do with these pages?

These pages give you the ability to use JavaScript and CSS to customise your viewing and editing experience while on Wikia. To get an idea of some scripts others have written that you might find useful or would like to try, take a look at the list of JavaScript Enhancements on the Developers Wiki.

How to set it up

On Community Central, edit Special:MyPage/global.css and Special:MyPage/global.js.

These two pages act similar to site-specific personal CSS and JS files, but will affect all Wikia wikis you visit.

Technical info

  • The files are loaded for every skin.
  • If you want to code JavaScript only for a specific skin, make use of the skin variable in JavaScript, where every wikia stores its skin name.
  • Due to CSS load orders, you may sometimes need to make use of the !important property.

See also

Further help and feedback

Around Wikia's network

Random Wiki