Scripting and Extensions: Difference between revisions

m
(Added "How to Use")
Line 152: Line 152:


=== Console scripts ===
=== 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.
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.
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.
575

edits