User:Nixinova/namespace-shortcuts.js/doc

This script is used to add shortcuts to different namespaces.

Install
Install by adding the following to your common.js: mw.loader.load('/index.php?title=User:Nixinova/namespace-shortcuts.js&action=raw&ctype=text/javascript');

Usage
This script will replace any shortcuts typed into the URL or search box with their full versions.

Customize
Add custom replacements by adding entries to the  array. Note that these replacements do not override any replacements made by the base script, so instead of "u:whatever" you would have to type "user:whatever".

In the following example, the shortcut "nn" is set to become "User:Nixinova", so when "nn" is placed in the URL or at the start of the search box it will be replaced. window.namespace_replacements = [ ['nn', 'User:Nixinova'] ];