Jump to content

User:Zackmann08/scripts/JWB

From Wikipedia, the free encyclopedia
JWB
DescriptionAllows for the ability to perform rapid, semi-automated edits in the web browser.
AuthorsZackmann08, based on the original concept by Joeytje50
UpdatedJuly 26, 2026
    (19 days ago)
SourceUser: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 m will be changed to |height={{cvt|123|m}}. If you need additional values added to the regular expressions in convert.json, please let me know.

Buttons

[edit]
  1. Run Indent.js
  2. Force save and bypass any preview checking/duplicate argument checking that has been selected to run (requires confirmation)
  3. Run a check for CAT:DUPARGS