User:Nyakase/Scripts/StatusChanger

From Wikipedia, the free encyclopedia
StatusChanger
Author(s)Vukky
StatusStable
UpdatedSeptember 29, 2021; 2 years ago (2021-09-29)
SourceUser:Vukky/Scripts/StatusChanger.js

StatusChanger is a fork of Enterprisey's Status Changer, which adds a UI to the script. It does so using Morebits, so you'll need to have Twinkle enabled to use it.

It will display a "Status" link in the top right of your screen, which you can use to change your status for templates like {{Statustop}} and {{UserStatus}}.

Installation instructions[edit]

Hint: It's much easier if you get ScriptInstaller, then navigate to User:Nyakase/Scripts/StatusChanger.js and click "Install" at the top.

However, here's the manual method:

  1. Place {{subst:iusc|User:Nyakase/Scripts/StatusChanger.js}} on Special:MyPage/common.js or a skin-specific page, like Special:MyPage/vector.js.
  2. Clear your cache and enjoy!

Configuration[edit]

You may add variables to your common.js to change how the script functions.

Status list[edit]

This is an array with a list of statuses that you can choose from. For example, if you're using {{UserStatus}}, you can add the additional statuses it has like this:

statusChangerConfig = {}
statusChangerConfig.statusList = [ 'online', 'offline', 'sleeping', 'in', 'busy', 'wikibreak', 'away', 'vandal', 'holiday', 'school', 'working', 'eating', 'huggle', 'twinkle' ];

Status page[edit]

This is a string that contains the page you want to save the status to. Usually this is Special:MyPage/Status, but you can change it like this:

statusChangerConfig = {}
statusChangerConfig.statusPage = 'User:Vukky/CoolStatus'