User:Frostly/Prepend and append in JWB

JavaScript Wiki Browser (JWB) is a handy user script alternative to AutoWikiBrowser that works on the web, unlike AWB, which is easiest to run on Windows. One missing feature in JWB is prepending and appending text. This is easily achieved, however, with a simple RegEx replace.

After you have your list ready in JWB, click on the "Editing" tab. Click on the checkbox to the left of "Regular Expression:". In the "flags:" textbox, add "m". "Then, follow the applicable instructions:

Prepend
Below, in the "Replace:" textbox, enter "^". In "With:", enter what you'd like to prepend. If you want to have a newline after prepending, add a "\n" to the end of the text, without spaces.

Example:  prepends a speedy deletion tag at the start of the page.

Append
Below, in the "Replace:" textbox, enter "$". In "With:", enter what you'd like to append. If you want to have a newline before appending, add a "\n" to the start of the text, without spaces.

Example:  appends a category at the end of the page.