User:Zettanoia/scripts

Documentation on how to add certain features to the wiki, and how to use some of them.

Shout out to Monchoman45 for his documentation on custom scripts! The page contains a list of many neat CSS and JS features that you can customize your wiki experience with.

Personal
To enable a code on one wiki, put the code in User:Yourname/wikia.css or User:Yourname/wikia.js on that wiki.

''ADMINS: To enable a code for every user on a wiki, put the code in MediaWiki:Common.css or MediaWiki:Common.js on that wiki. However, please discuss changes with me before doing so, as certain features should not be pushed onto every user!''

Chat Hacks
Original Code: ChatHacks.js

How to Install

Go to User:Yourname/wikia.js and create a page with the following code as it's contents: importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

Alternatively, if you want ChatHacks enabled on all wikis you visit, create a page on the Community Central wiki at User:Yourname/global.js with the above code.

You'll know that ChatHacks is working if it says 'Chat hacks initialized' when you first enter.

Note that ChatHacks only works if you join chat from a chat module created with (ie. the module that shows up to the right of pages like Special:WikiActivity).

Functions

Option to set keywords (defaults to just your full username) which will play a sound for you when they are typed in chat.
 * A host of slash commands
 * Type '/help' for a list of commands.
 * Ability to go 'Away'
 * Inline alerts every time your away status changes
 * Ability to clear your chat window
 * Ability to create multi user private chats
 * Type '/private' followed by a list of usernames (case-sensitive?) to create
 * Icons next to messages by staff and chat mods in the room
 * Pings a sound when someone mentions your name or any other specified phrases
 * Phrases can be specified under the 'Ping phrases' option in the chat, separated by a new line

Admin-Only
''Admin-only features can be enabled in MediaWiki:Common.css or MediaWiki:Common.js. However, certain steps need to be taken in order to ensure that a feature is only available to admins. Please let me know before attempting to install something! ''

Admin features can typically be accessed through 'My Tools' in the toolbar at the bottom of every wiki page.

Mass Rename
Documentation: MassRename

Function

Allows one to mass rename files or pages. They are renamed in the format of 'OLDNAME NEWNAME', with a space separating the old name and new name. Each file/page should be placed on a new line.

For example: File:CCO-exped.ogg File:Shishiou-expedition.ogg renames CCO-exped.ogg to Shishiou-expedition.ogg

Batch Delete
Documentation: BatchDelete