Security
User scripts have unlimited access to your account by their very nature – unlike OAuth/bot password based applications such as Huggle, where you can control access levels, the script runs in your browser. Anything you can do on Wikipedia, it can do. As such, and this is especially pertinent to users with advanced permissions, make sure that you trust the user who wrote the script, as you will be held responsible for any actions it takes on your behalf. If you are "importing" a script (instead of copying the code itself) be warned that the user you are importing from could alter their script at any time. Only import from users you trust.
List of user scripts
If you come across or write a user script, please add it to Wikipedia:User scripts/List and Category:Wikipedia scripts. To add new scripts to the main list, use the {{user script table row}} template. Include at least the code page path and a short description. For example:
{{user script table row
|name=My script
|code=User:Example/MyJSpage.js
|doc=User:Example/MyJSdocumentationPage
|desc=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.
Search for user scripts
Don't see what you need? You can request a new user script or search for an existing script.
Search within the code of user scripts:
Search user scripts by their title:
Troubleshooting scripts
If you encounter issues with a script, first try clearing your browser cache and purging the server cache. If you have any ad blockers or similar extensions installed, such as NoScript, check that wikipedia.org, wikimedia.org, mediawiki.org, and wikidata.org are exempted from any filters.
If you continue to experience problems, or if site functionality is significantly broken for you (for example, you are unable to edit any pages), you can enable safe mode to temporarily deactivate all on-wiki scripts and stylesheets.
To temporarily enable safe mode, add ?safemode=1 to the end of the web address (URL) of the page. Example: https://en.wikipedia.org/wiki/Main_Page?safemode=1. If the URL already includes a ?, add &safemode=1 instead. Example: https://en.wikipedia.org/w/index.php?title=Main_Page&safemode=1.
Safe mode can be enabled on all pages by default by going to your user preferences, selecting the Appearance tab, then enabling the Always enable safe mode option.
User scripts and site gadgets will not run on the user preferences page, so you can still make changes to your account, such as changing your password, even if you have a faulty script installed.