Help:Global CSS and JS
This text is stored on Wikia Community Central. Suggest changes here.
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.
Contents |
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 on Wikia wikis. 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 Developer's Wiki.
How to set it up
On Community Central, you can 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
skinvariable in JavaScript, where every wiki stores its skin name. - The CSS is loaded after the main MediaWiki CSS, but before the site specific CSS, so if you want to overwrite a wiki's custom CSS, make use of the !important property.
See also
Retrieved from "http://naruto.wikia.com/wiki/Help:Global_CSS_and_JS"