FANDOM


Wikia allows JavaScript code to be loaded on the wiki. There are 3 main pages about JavaScript code:

Personal JavaScript page Edit

Your personal JavaScript page contains javaScript code that it's only loaded for you on a given wiki. It only gets executed for you, so it's good for testing or disabling features on a local wiki.

If you want code executed on every wiki you visit, see Global JavaScript page.

It's located as a subpage of your username, with the name of the skin. The name of the skin must be in lowercase.

For example, under Monaco your personal JS is at: Special:MyPage/monaco.js. Under Monobook it's at Special:MyPage/monobook.js.

Global JavaScript page Edit

This is also for personal javaScript code that only gets executed for you, but the code is the same on all Wikia. Use it for code that you need executed on every wiki you visit.

Your personal global JS is located on Community Central, under w:Special:MyPage/global.js.

Per-wiki JavaScript page Edit

That javaScript page is loaded for all users on a given wiki, and it's maintained by sysops of that wiki. This allow sysops to customize with JavaScript the experience of their users.

There are two javaScript pages customizable per wiki:

MediaWiki:Common.js
This page is loaded for all skins, so it's intended to be the place for scripts modifying the content of articles.
MediaWiki:Skinname.js
This page is loaded only for users using that specific skin, so it's intended to be the place for scripts modifying parts of the individual skin.
It's MediaWiki:Wikia.js for the Oasis skin, MediaWiki:Monobook.js for Monobook, etc.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.