Scripting and Extensions: Difference between revisions

Move the majority of installation instructions to Scripting and Extensions Instructions
m (Update Discord server link)
(Move the majority of installation instructions to Scripting and Extensions Instructions)
Line 1: Line 1:
<!--No version number since version is per tool/script-->
<!--No version number since version is per tool/script-->
{{Otheruses|listing scripts and extensions|instructions on installing scripts and extensions|Scripting and Extensions Instructions}}
Many people have developed scripts and extensions that add QOL, automation, calculators and more. There is an active community of people trying to develop new scripts and extensions on the [https://discord.gg/MelvorIdle Melvor Idle Discord].
Many people have developed scripts and extensions that add QOL, automation, calculators and more. There is an active community of people trying to develop new scripts and extensions on the [https://discord.gg/MelvorIdle Melvor Idle Discord].


Line 270: Line 271:


== How to Use? ==
== How to Use? ==
Depending on the type of script or extension there are different ways needed to add them to the game. For Steam, see [[Scripting and Extensions Instructions]].
Depending on the type of script or extension, different methods may be needed to add them to the game. For Steam and web browser (PC), see [[Scripting and Extensions Instructions]].
 
=== Extensions ===
Extensions are independent add-ons that run in the browser. How to install varies from different browsers.
 
For Firefox, most extensions can be installed directly to the browser from the [https://addons.mozilla.org/en-US/firefox/extensions/ Firefox Extension Store].
 
For Chrome, many extensions needs to be added as an [https://developer.chrome.com/extensions/getstarted upacked extension] while in Developer Mode.
 
Some extensions might require you to edit specific files or set specific variables before they can run. The page with the download link will usually have a more detailed explanation on how to install.
 
Remember to refresh the game for the extension to take effect.
 
=== Userscripts ===
Userscripts are programs that run by the help of userscript manager browser extensions such as [https://www.greasespot.net/ Greasemonkey] or [https://www.tampermonkey.net/ Tampermonkey].
 
If the source of your userscript is a userscript repository, such as [https://greasyfork.org/ Greasyfork], simply Install by clicking the button on the page.
 
If the userscript is shared through a plain text sharing site, such as [https://pastebin.com/ Pastebin], copy the code into a new userscript in your userscript manager browser extension.
 
Remember to refresh the game for the userscript to take effect.
 
=== Console scripts ===
The simplest form of scripts are javascript code that are pasted directly into the console of of your browser.
 
To access the console open Developer Tools (usually by pressing F12) in your browser and navigate to the console. Then, simply paste the code in the input field and press enter. Most console scripts will require you to fill out variables in the code before executing them.
 
Do note that unlike extensions and userscripts, console scripts will run without refreshing the game, but will in turn not be saved when the game is closed.


{{Menu}}
{{Menu}}
[[Category:Guides]]
[[Category:Guides]]