User:The Transhumanist/Outline of scripts

The following Wikipedia-user-reference outline is provided as an overview of and topical guide to userscripts:

Userscript – userscripts are programs, usually written in JavaScript, for extending the capability of one's browser and for modifying web pages. Using them is referred to as augmented browsing, and there are thousands of them available around the Internet. Those work through a browser extension, and some of them are designed to work on Wikipedia pages. Independent from those, Wikipedia includes a feature that allows users to install user scripts (designed specifically for use on Wikipedia) on their Wikipedia accounts, and those only work while a user is logged in on Wikipedia. Within the Wikipedia community, scripts designed to work via WP user accounts are referred to as "user scripts" (notice the space between "user" and "scripts").

This outline was written mostly with the JavaScript programmer in mind. It attempts to track down the source code for all userscripts (external and internal, including gadgets), and everything about developing user scripts (including gadgets) for Wikipedia and MediaWiki. MediaWiki is the program that Wikipedia is run on.

Note that most gadgets are JavaScript programs (the rest are css snippets). Gadgets are selected by user account, and therefore, those that are JavaScript programs are user scripts, though they are removed from user script lists once they become "gadgets". The type of gadgets that are JavaScript programs are covered by this outline.

Using scripts

edit

Using Wikipedia user scripts

edit

Wikipedia user scripts – powerful customizations written in JavaScript, authored by the community (Wikipedia users), that allow registered Wikipedians to change Wikipedia's interface, and process data (content), beyond the options available in preferences. Wikipedia user scripts are designed to be run from and while logged in to Wikipedia. On Wikipedia, a userscript feature is enabled for registered users that allows them to install userscripts on their user accounts to augment editing and viewing of the encyclopedia's pages.

Using userscripts in general

edit

Userscript – program, usually written in JavaScript, for modifying web pages to augment browsing. They are enabled in browsers by use of a userscript manager browser extension. Userscripts are often referred to as Greasemonkey scripts, named after the original userscript manager Greasemonkey for the Firefox browser. Some userscripts out there are designed to work on Wikipedia.

Writing Wikipedia user scripts

edit

Modules, and loading dependencies

edit

Global scripts

edit

Global scripts – these scripts work on all users, or a specific group of users, on a wiki, if installed on that wiki. They are included here because what's in them may affect how your scripts work, and so you may need to look at them.

Caveats

edit
  • Automated editing – scripts that modify and save the contents of pages without editor interaction are bots, and must be approved by the bot department before they can be used on Wikipedia. An example of a bot would be any script that saves a page that it has worked on, rather than leave it to the user to do so. Only editors and approved bots are allowed to save.

JavaScript resources

edit

JavaScript – the programming language that user scripts are written in.

MediaWiki's JavaScript support pages

edit

Actual user scripts

edit

Actual Wikipedia user scripts

edit

Looking for Wikipedia user scripts? This section provides links to where you can find them, and lists some of the more useful or interesting scripts.

Lists of Wikipedia user scripts

edit

Most gadgets are user scripts

edit

Wikipedia:Gadget – userscript and/or a CSS snippet that can be enabled simply by checking an option in your preferences. The gadget's function is provided by the MediaWiki extension Extension:Gadgets. Gadgets are among the best user scripts, and their sourcecode is of the highest quality JavaScript programming on Wikipedia.

Bots written in JavaScript
edit
Scripts on the old WikiProject User Scripts subpages
edit

External userscripts that work on Wikipedia pages

edit

Javascript programs in general

edit

Templates

edit

User scripts subpage list

edit

Wikipedia:User scripts


See also

edit

Place these

edit
edit