User:Zackmann08/scripts/JWB
Appearance
| Description | Allows for the ability to perform rapid, semi-automated edits in the web browser. |
|---|---|
| Authors | Zackmann08, based on the original concept by Joeytje50 |
| Updated | July 26, 2026 (19 days ago) |
| Source | User:Zackmann08/scripts/JWB.js |
To install
[edit]NOTE this script cannot simply be installed as any other userscript. If you wish to have access to this script, you must explicitly request access from Zackmann08.
Features
[edit]- Auto indent
- The ability to automatically indent code to increase readability and facilitate better error handling, Indent.js can be automatically run.
- White space checking
- Due to the use of Indent.js it is possible to have purely whitespace changes, which are generally frowned upon as cosmetic edits. These edits will automatically result in a null-edit to the page and be logged in the "log" tab as
white-space. - Duplicate argument checking
- Designed to prevent the introduction of CAT:DUPARGS when editing pages, this feature will trigger an alert when duplicate arguments are found. NOTE this is not 100%. I have never had it miss a duparg, but it does occasionally trigger false-positives.
- Preview checking
- This feature is specifically designed for checking for errors in the page you are editing at the time of saving. It has a number of options of when to error including:
- Unknown parameters found
- Deprecated parameters found
- Lua error found
- Custom value
- When any of these are selected/filled out, the save will trigger an error when the applicable condition is found.
- Automatically insert convert templates based on User:Zackmann08/scripts/JWB.js/convert.json
- Specifically designed for Infobox cleanup, this feature will automatically look for instances of unconverted units and change them to use {{Cvt}}. For example,
|height=123 mwill be changed to|height=. If you need additional values added to the regular expressions in convert.json, please let me know.{{cvt|123|m}}
Buttons
[edit]
- Run Indent.js
- Force save and bypass any preview checking/duplicate argument checking that has been selected to run (requires confirmation)
- Run a check for CAT:DUPARGS