This week's tutorial explains how to install user scripts that increase the functionality of the encyclopedia's interface. Such tools range from rather simple scripts - for example, that replace some text with other text - to complicated behemoths that do everything from fighting vandalism to closingAFCs.
If you are using the Monobook skin (for more on skins, seeWP:SKIN), your scripts page would be atthis location. In general, if you use skin X, your scripts page would be at User:(your username)/X.js.
Once you have navigated to the page, you should see the following box:
This means that unknowingly putting malicious scripts on your scripts page may lead to your account being compromised. One must always be careful when installing scripts.
To install a script, simply edit the page and copy-and-paste the desired script in (or, if you are familiar withJavascript and you know how to use Wikipedia'sDOM, type your own). Save the page as your normally would. Generally, you will have to bypass your cache (ctrl + f5 onFirefox andInternet Explorer, simply f5 onKonqueror and command + R onSafari to see the effects of the script.
A better question would be, "Whatcan't scripts do?" Scripts, as mentioned briefly above, can change Wikipedia's interface in drastic ways, as well as providing semi-automated ways to edit. The latter is particularly useful forvandalism fighting, though it has many diverse applications.
Some of the most well-known scripts are:
Which tools should you install? Consider first which tools you will actually have much use for. If you spend your time voting in XfDs, vandalism reversion scripts may not be useful for you, and vice versa.
WikiProject User scripts, a WikiProject devoted to scripts, maintains alist of user scripts. One can alsorequest a script be made.
If you wish to use the same scripts as another user, there are two methods. One is to simplysubstitute their script page onto your own. The second is to use the importScript command, which works as follows:
importScript('OTHER USER'S SCRIPT PAGE');A more recent feature is the "Gadgets" tab inyour preferences page. If you want to use a gadget (user script or CSS modification) that is listed, you simply check a box and save your change. The list includes some of the more well-known scripts. (If you want to customize a script, you'll need to install the scripts manually.)
| Also this week: | ||
| (← Previous Tutorial) | Signpost archives | (Next Tutorial→) |