MediaWiki/js: Difference between revisions
m tagged |
No edit summary |
||
| Line 3: | Line 3: | ||
For instance, if you put the [[JavaScript|JavaScript]] code for [[wp:User:Cacycle/wikEd | wikEd]] in there, it will make the WikEd editor available to all users of the local wiki. | For instance, if you put the [[JavaScript|JavaScript]] code for [[wp:User:Cacycle/wikEd | wikEd]] in there, it will make the WikEd editor available to all users of the local wiki. | ||
[[Category:Wiki]] | [[Category:Wiki]] | ||
== Debugging JavaScript == | |||
# Access the developer tools of your browser | |||
** Chrome <code>CTRL + SHIFT + J</code> | |||
** Firefox <code>CTRL + SHIFT + I</code> | |||
# Go to the console tab (look for errors) | |||
# append <code>?debug=true</code> to the URL and reload the page. This will give you non-minified JavaScript. | |||