| Description | Convenient script installation |
|---|---|
| Author | Enterprisey |
| Status | Stable |
| Updated | January 1, 2024; 21 months ago (2024-01-01) |
| Browsers | All modern browsers, and IE 11 |
| Skins | All desktop skins |
| Source | MediaWiki:Gadget-script-installer.js |
Install, uninstall, enable, and disableuser scripts without having to edit your JavaScript files. The user interface was inspired byUser:Equazcion/ScriptInstaller, but doesn't share any code with it.
In your preferences, go toPreferences →Gadgets. At the bottom of the "Advanced" section, click the "Install scripts without having to manually edit JavaScript files (documentation)" checkbox, then click the "Save" button.
The script has a number of options that allow you to customize its behavior. To set any of the preferences, add the following pattern (on a new line inyour common.js file):
window.OPTION=VALUE;
For example, if I wanted to, by default, install new scripts to mymy monobook.js page instead ofmy common.js page, I would set the optionscriptInstallerInstallTarget to"monobook" by putting the following line somewhere inmy common.js:
window.scriptInstallerInstallTarget="monobook";
| Name | Values (Default in bold) | Description |
|---|---|---|
scriptInstallerInstallTarget | "common","monobook","timeless","skin name goes here" | What skin should scripts be installed for? (Equivalently, what target page should scripts be installed on?) |
scriptInstallerAutoReload | true,false | Should the script reload after installing, uninstalling, and other actions? |
People have asked for these, but I don't plan to work on them myself. If anyone would like to try doing it themselves, I would be happy to mentor them through the process:
{{User wikipedia/script-installer}}, a userbox indicating an editor uses script-installer