For faster navigation, this Iframe is preloading the Wikiwand page for User:Enterprisey/script-installer.

User:Enterprisey/script-installer

script-installer
DescriptionConvenient script installation
Author(s)Enterprisey
StatusStable
UpdatedJanuary 1, 2024; 8 months ago (2024-01-01)
Browser supportAll modern browsers, and IE 11
Skin supportAll desktop skins
SourceMediaWiki:Gadget-script-installer.js

Install, uninstall, enable, and disable user scripts without having to edit your JavaScript files. The user interface was inspired by User:Equazcion/ScriptInstaller, but doesn't share any code with it.

Installation instructions

[edit]

In your preferences, go to Preferences → 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.

Usage

[edit]
  • If you go to a user script page (like User:Enterprisey/reply-link.js), there will now be an "Install" link at the top. Clicking it will install the script and reload the page. Certain pages may have this option disabled.
  • Also on user script pages, there will be a "Manage user scripts" option at the top, which will show you a list of all of your user scripts, with options to uninstall (i.e. remove entirely) or disable ("comment out" the user script, without permanently removing it; enable will undo this).
  • WP:US/L and other pages that use ((userscript)) will now show script links with a little "Install" link after them.

Options

[edit]

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 in your common.js file):

window.OPTION = VALUE;

For example, if I wanted to, by default, install new scripts to my my monobook.js page instead of my common.js page, I would set the option scriptInstallerInstallTarget to "monobook" by putting the following line somewhere in my 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?

Future improvements

[edit]

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:

See also

[edit]

((User wikipedia/script-installer)), a userbox indicating an editor uses script-installer

{{bottomLinkPreText}} {{bottomLinkText}}
User:Enterprisey/script-installer
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?