Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





User:Enterprisey/script-installer





User page  

Talk  



Language  

Watch  

Edit  


< User:Enterprisey
 


script-installer
DescriptionConvenient script installation
Author(s)Enterprisey
StatusStable
UpdatedJanuary 1, 2024; 6 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

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 scriptInstallerInstallTargetto"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


Retrieved from "https://en.wikipedia.org/w/index.php?title=User:Enterprisey/script-installer&oldid=1229591966"
 



Last edited on 17 June 2024, at 17:15  


Languages

 



This page is not available in other languages.
 

Wikipedia


This page was last edited on 17 June 2024, at 17:15 (UTC).

Content is available under CC BY-SA 4.0 unless otherwise noted.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Terms of Use

Desktop