Wikipedia:User scripts/Guide: Difference between revisions

Content deleted Content added
mention jQuery before OOjs as more often used
Loading it from a localhost web server: added instruction on how to run a mini localhost webserver using python.
Line 121:
You can edit your <kbd>wikipediatest.js</kbd> file with any text editor, perhaps with syntax highlighting and other convenient features, save the file and simply reload any Wikipedia page to see the results. (You don't need to wait, and if your web server is nice or you set it right, you don't even need to [[Wikipedia:Bypass your cache|bypass your browser cache]].)
 
Most modern code editors and IDEs allow you to set up a localhost server – eg. use [https://atom.io/packages/atom-live-server atom-live-server] in [[Atom (text editor)|Atom]], and [https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer Live Server] in [[VS Code]]. [[WebStorm]] and [[PhpStorm]] have the feature built in, without requiring an extension. You can also use a third party program such as [[Node.js]]'s <code>npx http-server</code> command, or [[XAMPP]]. ([https://www.youtube.com/watch?v=hnTiNvv5Eec Herevideo tutorial]), isor a[[XAMPP]]. videoIf tutorialyou ofhave the[[Python Node(language)|Python]] installed, you can run <code>python -m http.jsserver</code> from methodcommand-line.
 
On Windows, you could also use for example [https://www.ritlabs.com/en/products/tinyweb/download.php TinyWeb] which is less than 100&nbsp;kbyte on disk and doesn't require installation. Save and unzip <kbd>tinyweb.zip</kbd> for example into <kbd>c:\Program Files\Tinyweb</kbd>, create a shortcut to <kbd>tiny.exe</kbd>, and add an argument in shortcut properties — path to your folder with <kbd>wikipediatest.js</kbd> and any file <kbd>index.html</kbd> (required). Start TinyWeb with this shortcut; unload it with Task Manager.