FANDOM


Nuvola apps important
This script is for PERSONAL use only!
You are free to install this script for yourself, but it is not allowed to be used wiki-wide (e.g., in MediaWiki:Common.js or MediaWiki:Wikia.js), as it would violate FANDOM's Terms of Use.
(See the customization policy)

SkinSwitchButton is script for changing skins with one-click.

Appearance

  • for Pseudo-Vector, the button will show in the editing toolbar on the top,
  • for Oasis, the button will show in the toolbar below.


How to use

In order to use this, put it in your w:Special:MyPage/global.js or your local js on a specific wiki. A helpful guide can be found here. Follow the following instructions:

Custom Wording

The ability to choose the wording of the Oasis text can be adjusted like this:

window.oasisText = "Wikia skin's layout";
importScriptPage('SkinSwitchButton/code.js', 'dev');

For the mobile one, you can change it like this:

window.mobileText = "Mobile's view";
importScriptPage('SkinSwitchButton/code.js', 'dev');

Or you can change them all at a time, like this:

window.oasisText = "Wikia skin";
window.mobileText = "Mobile's view";
importScriptPage('SkinSwitchButton/code.js', 'dev');