This is an old revision of this page, as edited by Novem Linguae(talk | contribs) at 02:54, 18 March 2021(remove site layout image. in my opinion, not related enough to the user script list. is also making the header big). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.Revision as of 02:54, 18 March 2021 by Novem Linguae(talk | contribs)(remove site layout image. in my opinion, not related enough to the user script list. is also making the header big)
User scripts are powerful customisations, authored by the community, that allow registered Wikipedians to change Wikipedia's interface beyond the options available in preferences. This page provides a list of available scripts and instructions on installing them. User scripts are written in JavaScript.
Many of the most popular scripts become gadgets, and are subsequently removed from this page. You can enable them via Preferences – Gadgets. It is recommended that you check there first for any tool you might be looking for, since gadgets have been widely tested and proven useful and reliable.
Most scripts are designed and tested primarily with the Vector skin, Wikipedia's current default.
How to install user scripts:(Simple method for scripts located on English Wikipedia)
First, make sure you are registered and logged in. Only logged-in users can install scripts.
Click the superscript link next to the name of the script you want to install and follow the instructions in the footnote.
If there is no superscript link next to the name of the script, then follow the link to the script's documentation and look for installation instructions there.
After you copy the necessary code to your common.js file as instructed in the footnote/documentation, save the page and bypass your cache to make sure the changes take effect.
Automatic installer:Script Installer makes script installations fully automatic. The installer itself can be installed in the Preferences → Gadgets section in your preferences. Afterwards, scripts can be installed with a single click.
Full manual install instructions
First, make sure you are registered and logged in. Only logged-in users can install scripts.
Add the following line: importScript('script_path'); – where "script_path" is the full name of the .js page that opens when a script's "(source)" link is clicked.
For example, to install the Sharebox script, add the following line: importScript('User:TheDJ/sharebox.js');
Consider adding a backlink by adding //[[script_path]] to the end of the line, which aids script usage statistics.
Save the page and bypass your cache to make sure the changes take effect.
How to add new scripts to this list
Use {{userscript}}. Include at least a code page address. Add a short description after the userscript template. Example:
*{{userscript | name= My script | code= User:Me/MyJSpage.js | doc= User:Me/MyJSdocumentationPage }} – This script does something useful.
Name defaults to the code page's name, without its path or ".js".
If a documentation page exists matching your .js page name, it will be linked automatically, without the need for a doc parameter. So, if your script is at User:Foo/Bar.js with a documentation page at User:Foo/Bar, and the script is called Bar, just write *{{userscript|doc=User:Foo/Bar}} – Does stuff.
Want to advertise your user script development skills? Use {{user script developer}}: