User:Nyakase/Scripts/StatusChanger
Author(s) | Vukky |
---|---|
Status | Stable |
Updated | September 29, 2021 |
Source | User: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
editHint: 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:
- Place
{{subst:iusc|User:Nyakase/Scripts/StatusChanger.js}}
on Special:MyPage/common.js or a skin-specific page, like Special:MyPage/vector.js. - Clear your cache and enjoy!
Configuration
editYou may add variables to your common.js to change how the script functions.
Status list
editThis 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
editThis 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'