User talk:Joeytje50/JWB

(Redirected from User talk:Joeytje50/JWB.js/load.js)
Latest comment: 2 months ago by Ahecht in topic Wiki-wide basis

Making a bot with this

edit

Hi! How can I use this to make a bot? Do I need anything more than approval and to leave a tab open with stuff inputted to automatically edit? Thanks! DemonDays64 | Tell me if I'm doing something wrong :P 15:50, 21 November 2019 (UTC)Reply

JWB isn't designed for completely automated editing; you have to click a button to save an edit. So you'd have to program your mouse to click at regular intervals, or program your computer to click "enter" at regular intervals with the button selected, or something. — Eru·tuon 19:28, 21 November 2019 (UTC)Reply
@Erutuon: this page says: “Users with the bot usergroup will also be able to automatically save their edits.“ so apparently that’s incorrect. My question is if I’d need to do anything more to have a bot work with this than leave a tab open with an approved bot account and stuff for it to do? DemonDays64 | Tell me if I'm doing something wrong :P
Hmm! Maybe I'm wrong, because I've never operated JWB while being a bot. — Eru·tuon 00:26, 22 November 2019 (UTC)Reply
Erutuon@ What you'd need to run a fully automated bot is to be listed as a bot on the WP:AWB checklist, as well as having the Bot user group. Once those requirements are met, a checkbox to automatically save your edits will appear. Joeytje50 (talk) 21:52, 2 May 2025 (UTC)Reply

Edit summary preview

edit

Wikipedia's source editor provides preview of the edit summary when viewing the "Show preview" or "Show changes" page. It would be nice if JWB has also showed preview of the edit summary. —⁠andrybak (talk) 09:42, 10 October 2020 (UTC)Reply

Edit summary from replace fields

edit

When editing using JWB, I often use several replace fields, which sometimes do unrelated edits. What if every replace field had additional textfield "edit summary"? JWB could then automagically construct the whole edit summary using edit summaries of those replace fields, which were applied in the whole edit. —⁠andrybak (talk) 12:54, 10 October 2020 (UTC)Reply

JWB scripts

edit

@Joeytje50 Can you disable other scripts on the JWB page, as User:Awesome Aasim/rcpatrol does, to prevent script errors?  Qwerfjkltalk 12:37, 13 August 2021 (UTC)Reply

@User:Qwerfjkl: I could have a look at that. I already have some systems which disable existing scripts from running, but I could try making it a bit more thorough if that's needed. Which scripts in particular are you having issues with, which would need to be disabled? Joeytje50 (talk) 14:12, 1 October 2021 (UTC)Reply
@Joeytje50 No idea. I get errors like Uncaught TypeError in line ~4469: property "top/left" is undefined. (And error messages spam so I can get over 200 of them.)  Qwerfjkltalk 14:19, 1 October 2021 (UTC)Reply
It might be tough preventing those, but I could have a look at that some time in the future. However, I can't guarantee when I'll have time to fix this issue. Joeytje50 (talk) 14:38, 1 October 2021 (UTC)Reply

ECP?

edit

Is there any way to do ECP? I only see semi-protection and admin. -- RoySmith (talk) 19:12, 26 October 2021 (UTC)Reply

@RoySmith: I had not heard about ECP before (in fact, I had to look for a bit to find WP:ECP). Because I like to keep JWB available not just on ENWP, but on all wikis (even non-Wikipedia wikis), I would like to make sure features I implement wouldn't break functionality on other places. After having a quick look, I was not able to find any documentation on mw:Manual:Protection or any other place on the MediaWiki wiki, giving me specific information about extended protection. Next, I tried looking for ways to detect which levels of protection are available on a given wiki (through the API), but unfortunately I wasn't able to find that either. Until I can find some more information about ECP, I don't think I can quite implement this yet. I'll put it on my list of things to check at some point, though, because this does seem like a useful addition. Joeytje50 (talk) 21:47, 11 July 2022 (UTC)Reply
Interesting. I had no idea that was an enwiki-specific feature. I just took a look at mw:Manual:Protection and also mw:Manual:page restrictions table, both of which just hint that there might be other protection levels. I wonder if there's something in the per-wiki configuration that sets them up? I'll ask around and let you know if I figure anything out. -- RoySmith (talk) 22:44, 11 July 2022 (UTC)Reply
@Joeytje50: See Special:ApiHelp/query+siteinfo; this submodule has a property that returns restrictions. Check my fork here (find protect). NguoiDungKhongDinhDanh 11:37, 13 July 2022 (UUTC)

QOL changes

edit

Hello! I was using JWB recently and noticed some details in a quick glance. Not sure if this is the right place to report it but I'm trying.

  1. When you click "Generate", you're greeted by an all grey field. Can the tick-boxes be actually white so we know they are tickable? I remember back in my old days that I've spent literal hours starring at that part + doc pages not knowing why I wasn't allowed to generate anything until I randomly started clicking on the screen in frustration and one of the tick-boxes was ticked accidently and I heard the Hallelujah chorus start signing.
  2. When we are using more than 1 replace field, can a small notification of any kind be added to the interface that tells us that we are using more than 1 replace field?
  3. [Minor bug] In the Skip tab, in the Skip when section, there is definitely 1 space missing before neither and maybe some spaces missing before the tick-spheres so they don't get merged together with the prior entries. For an example of how it can be improved, look the tick-spheres just above in the Redirects section, in the same tab.

- Klein Muçi (talk) 13:03, 6 March 2022 (UTC)Reply

While you're in there:
  1. When I open JWB, the first thing I do is edit the CSS to set "width=95%" on .JWBpopup input, so I don't have to perform keyhole surgery on the search terms. Please can this be the default?
  2. In "More replace fields", "Add more fields" appears at the top, but adds a field at the bottom. This is counter-intuitive. (Bottom is the best place, but I sometimes need to insert a change before the existing changes and wish it did insert at the top, rather than having to shuffle all my existing regexps down one. Having both options would be nice!)
  3. Could the height of the top diff area be adjustable, e.g. allowing the horizontal line at its bottom to be dragged up and down to resize it? I have a big gap across the bottom of my screen and would love to use that space for a few more rows of diff, so I don't have to move up to the diff and scroll it for every page before returning my mouse to the Save button. Again, I've resorted to fiddling the CSS to fit my screen, but the change I make won't suit everyone.
Thanks again for a wonderful tool which is extremely useful and much appreciated despite these occasional frustrations! Certes (talk) 13:37, 6 March 2022 (UTC)Reply
2 more small changes:
  1. After you increase the number of replace fields there is no way to clear them beside deleting them manually one by one. Can we add a "Clear" button?
  2. When you first open JWB, you're greeted by the "Editing" tab which does nothing until you generate some pages in the "Setup" tab. Can we get the "Setup" tab as an initial tab instead of the "Editing" tab?
- Klein Muçi (talk) 17:45, 7 March 2022 (UTC)Reply
@Klein Muçi: @Certes: Thanks for the QOL suggestions. I've implemented most of these, so if you ever have any more suggestions please do let me know.
  • The 'Generate' popup's checkboxes should now be more clearly clickable. If this is still not quite clear enough then please do let me know!
  • I did not implement the notification telling you you are using more than 1 replace field right now. I'm not entirely sure what would be the best way to indicate this in the main window, so if you have suggestions how this would be made clear, without being intrusive in the main layout, please let me know about this as well.
  • Thanks for reporting these spacing issues. You were right that they were indeed missing a few spaces.
  • I've fixed the pagelist generating inputs not being wide enough. You were not the only one reporting this as being a QOL issue, so thanks for letting me know.
  • I've implemented the suggestion to have multiple 'Add more fields' buttons. I think it works fairly intuitively now, so I did not include any further explanations through tooltips. Please do note that if you press the TAB button while working in the bottom-most field, another one will be created automatically, to make it easier to keep working after adding a rule (that way, there's always an empty replace field waiting for you).
  • Unless I'm misunderstanding your suggestion, adjusting the diff/preview field's size is already possible. In most browsers, there should be an indicator in the very bottom right corner of the top section in JWB, indicating it is resizable (exactly the same resize indicator seen in the regular source editor). If this is not what you meant, please let me know.
  • I did not implement a 'Clear' button right now, because I think it is quite dangerous to have buttons perform unrevertable actions that delete work. In the future I might implement this with some appropriate warning, but until then I left this alone for now.
  • I agree with the suggestion of having 'Setup' being the default tab, so changed the script accordingly. Hopefully, people won't be too upset with this change ;)
All in all, very nice suggestions, so thanks for leaving them! Joeytje50 (talk) 23:31, 11 July 2022 (UTC)Reply
@Joeytje50, thank you for taking our suggestions into consideration! Some comments in regard to what you wrote:
  • The "generate ticks" are OK now.
  • The notification of multi replace fields can be something really small on the right corner at the bottom of the fields at the Editing tab (right below the "With" field), as wide as the icons used in the Settings section of the Setup tab, that symbolizes multiplication somehow. When clicked, it works the same as clicking "More replace fields" and opens the said fields.
  • A red Clear button beside the "Add more fields" button at the bottom of that page would be needed I believe. A popup warning asking for confirmation like you say could also be a good thing.
  • [PET PEEVE] Maybe instead of the superscripted question mark over Regular Expressions used in Editing and Skip tabs we can have the number 101. I always intuitively expect the question mark link to send me into the RegEx article or somewhere similar explaining what RegEx is instead of a place that explains how particular RegExes work. Having Regular Expressions101 would literally read the name of the place it sends you (Regular Expressions101 = regex101) + 101 has been historically correlated with the usage instructions instead of general info.
  • [PET PEEVE] The spinning 2 arrows icon beside RegEx Typo Fixing is the only icon of that kind in the whole program and it looks kinda blurry. Maybe it can be replaced with an icon similar to the ones used in the Settings section of the Setup tab, replaced with something in higher quality or removed altogether.
  • [PET PEEVE] Maybe the "reset" button at the Setup tab, the "add now" button at the Editing tab, the "done" message at the bottom should be capitalized to follow the standard with all the other buttons of the program. Maybe the "Editing" tab should also be switched to "Edit" for the same reason, all the other commands in there are verbs in the imperative form.
  • [PET PEEVE] Maybe some spaces can be added to the ticks in the Generate popup. They do get merged together in the Category and Links to page sections.
Feel free to ignore all the pet peeve messages if you want. I just love the compactness and the lightweight feeling the script has to offer and started looking at its details wishing to make it extra-polished. - Klein Muçi (talk) 00:36, 12 July 2022 (UTC)Reply
"Other" tab suggestions:
  • Can we add a small text notification in the bottom of the tab telling us that the summary for moves, protects and deletions will be taken from the Edit tab?
  • Can we have a tooltip explaining how to the Expiry field works and what kind of values accepts? Especially for the indef. cases. I have literally no idea currently and didn't want to experiment.
  • [Not sure if achievable] Can we add a skip option if the page that I'm trying to protect already has the same protection level that I'm trying to give? There are many cases in massprotect situations where I have to click "Protect" dozens of times to finish the whole list and in the end you see that there were only 3 entries that actually needed to be protected. If they could be auto-skipped without me needing to click "Protect" that would save me a lot of time.
Question: What happens if you try to Move a page in a title that already exists? Again, too scared to experiment. - Klein Muçi (talk) 13:03, 16 July 2022 (UTC)Reply
Thanks for all the improvements. I should have noticed that the top area was adjustable – I'd been trying to drag the bottom line and hadn't noticed the diagonal stripes in the corner! The one thing that could still be improved is the tiny input window for "Wiki search/Search term" at the bottom of the Setup/Generate dialog. That's a frequently used box and we're rightly encouraged to add something complex like African elephant insource:/African elephant/, which simply won't fit in the default text space. Certes (talk) 09:28, 12 July 2022 (UTC)Reply
@Klein Muçi: I've made a couple of changes based on your feedback. Firstly, I've added an exclamation marker when there are replacement fields in use in the popup screen. The exclamation marker disappears again once the replacement fields in the popup are all empty again. Secondly, I've implemented your suggested changes to the regex101 link. I've also fixed the capitalisation of the buttons you've mentioned, and changed the 'Edit' tab to imperative. However, I'm not sure what you meant by the issue with spaces in the generate popup. For me, the check box and the text are decently spaced (about 1 space character of room between the box and the label). Are you requesting me to increase the space between them more? Also, I've not implemented a way to delete existing replacement fields from the popup yet, because I'm going to prioritise some other changes (if I implement it, I'd want to implement it in a slightly more advanced way, where it simply removes all empty replacement fields). However, do know that saving your setup, refreshing the page and then reloading the settings will clear all unused replacement fields.
I've also implemented the second batch of suggestions. I've added the notification about changing the summary in the Edit tab, and a link to the API documentation for expiry. Simply put: the expiry can be one of the 'infinite' values listed in that link, or they can be a relative or absolute date. Regarding the skipping when protection matches: I don't think there's a feasible way to implement that right now, but perhaps some time in the future I'll have a look at it. This would be a quite complex feature, however. Finally, regarding the page move button: That will ignore any warnings, meaning it will simply move over the existing page if you move to a page that already exists. Do keep that in mind when using this feature, so make sure your target pages are not pages you don't want to move over top of. Given that only administrators are allowed to move using JWB, I trust this feature will not be abused. Joeytje50 (talk) 15:51, 18 August 2024 (UTC)Reply
@Certes: I'm not sure what your suggestion is exactly. I don't think I can make the search field much wider than it currently is, given that a <textarea> would not work for search queries (no newlines are allowed). Joeytje50 (talk) 15:51, 18 August 2024 (UTC)Reply
The field was too small but its size was improved a year or two ago. I agree that nothing needs to be changed now. Thank you for all the good work. Certes (talk) 17:41, 18 August 2024 (UTC)Reply
Thank you for answering to our requests even though much time had passed! The Regular Expression on Skip tab could be updated to also use the 101 element (I think you may have accidentally forgotten). As for the Generate popup, in Category, the text pages gets merged with the tick box of subcategories which gets merged with the tick box of files. The same phenomenon happens in Links to page. To put it more easily: Your label elements needs some margin on the right in there so the tick boxes and the radio buttons of one label don't merge with the ending of the label's text before it. The text in them could also be aligned with their center instead of their bottom.
Small details which maybe are intentional and can be ignored:
  • RegEx Typo Fixing continues being the only element with an icon;
  • Expiry has a somewhat "murky" appearance because of the colon and the three dots under the question mark.
Keyboard navigation:
  • You can't tab-navigate to the three header tabs Setup, Edit, Skip, Other or to unchosen radio buttons and thus you can't neither go to those submenus, nor make any choices regarding radio buttons;
  • You can't exit the Generate popup with Esc or interact with tick boxes/radio buttons with Enter. Maybe you should.
  • When the Generate popup comes, you don't start tab-navigating straight to it but instead keep navigating in the existing default menu first, which you shouldn't. Also, since there are many elements to navigate, you could make things easier by implementing arrow key navigation along the default tab/shift-tab navigation to allow for reaching the needed element faster.
Thank you one more time for the product you've given us and the fact that you keep improving it! - Klein Muçi (talk) 11:39, 19 August 2024 (UTC)Reply

Ignore references

edit

I don't want to change any citation URLs, reference names, or reference quotes. Would it be possible to ignore anything inside <ref> </ref> tags, similar to User:Joeytje50/JWB#Ignoring unparsed content? Thank you! Reywas92Talk 18:49, 30 March 2022 (UTC)Reply

Thanks for the suggestion. I've put this on my to-do list, because this would probably require me to look into a few other things that would need to change along with this. However, I do like the suggestion, so I'll try having a look at this in the future. Joeytje50 (talk) 23:34, 11 July 2022 (UTC)Reply

Suggestion: reminder of Skip and More replace fields

edit

I sometimes run JWB for Foo, using the handy Skip feature to quickly dismiss pages not containing Foo, then run for Bar, wondering why nothing happens. (The Bar pages are skipped because they don't contain Foo.) Would it be helpful to change the tab header change from "Skip" to something like "Skip ON" when skipping is in force? Similarly, I forget that I have more replace fields which I set up temporarily for Foo. Would it be helpful to change the button which displays them from More replace fields to something like 3 more replace fields as a reminder that they are still in force? Certes (talk) 19:18, 20 July 2022 (UTC)Reply

I believe we are asking for the same thing here and your UI suggestion is better than mine. - Klein Muçi (talk) 20:51, 20 July 2022 (UTC)Reply

"undefined" error

edit

I'm editing Federal Way, Washington with JWB, and RETF would like to change "undefined" to "p$1up$1np$1dp$1ep$1fp$1ip$1np$1ep$1dp$1". A similar change is suggested in Undefined itself, for the first occurrence (which has a capital U). This doesn't happen in AWB. I've asked at WT:AWB/T, but could it be a JWB problem? For example, could an unused regex (text to be replaced) which has a JavaScript undefined value somehow get type cast to the string "undefined", then match successfully? Certes (talk) 11:38, 22 August 2022 (UTC)Reply

Now fixed by removing a blank rule. A potential minor bug may remain, but currently causes no problems. Certes (talk) 12:43, 22 August 2022 (UTC)Reply

Using deprecated API module list=deletedrevs

edit

JWB uses the deprecated API module list=deletedrevs whenever fetching page data: – however, it does not seem to actually use the results. Is there a chance that this code could just be deleted, or is it used somewhere in a non-obvious way? This would unblock T221869 (task to remove that API module). Matma Rex talk 02:02, 10 December 2023 (UTC)Reply

Bug report: regex in "When page doesn't contain" doesn't work

edit

I'm using a simple regex \{\{ *([Nn]avbox in the field "When page doesn't contain:" (flags: g) to filter out pages which are not using template {{navbox}}. However, JWB is not filtering out pages like Template:Epi and Template:Mountain range table cell (I'm going through Category:Mountain templates). —⁠andrybak (talk) 08:39, 10 December 2023 (UTC)Reply

I have also tested non-regex filtering by "avbox" – it seems to work, but the pages don't appear as "skipped" in the log tab. —⁠andrybak (talk) 08:42, 10 December 2023 (UTC)Reply
@Andrybak: If you are literally using that regex, it has an unbalanced left parenthesis. Certes (talk) 16:23, 10 December 2023 (UTC)Reply
My bad. The actual regex is \{\{ *([Nn]avbox|[Mm]ilitary navigation|[Cc]ivil navigation|([A-Za-z]+){1,5} topic|[dD]ocumentation subpage) (value of skipNotContains at the top of User:Andrybak/JWB-settings.json).
I've just tested \{\{ *[Nn]avbox, without the buggy unbalanced left parenthesis, and it is also broken. An example of a page which should be skipped, but isn't is Category:Mountain navigational boxes. —⁠andrybak (talk) 17:22, 10 December 2023 (UTC)Reply
I downloaded your settings, imported them into a fresh JWB and made a list of one page: Category:Mountain navigational boxes. I clicked Start; it skipped and is listed in the log as skipped. My next thought was that your list of pages has junk to the right of the page name which doesn't show because the page list is a narrow window, and you're trying to edit a redlink like Category:Mountain navigational boxes(lots of whitespace here)14 pages (been there; banged my head for hours), but that would still appear in the log. Certes (talk) 19:42, 10 December 2023 (UTC)Reply

Hmm. OK. The weirdness in the list is not it. 1) I've encountered the bug in a list populated via a category; and 2) the edit of the page is performed (diff & editor are filled).

🤔 I couldn't reproduce the bug when the only page in the list is Category:Mountain navigational boxes. But when the list is:

Template:100 Famous Japanese Mountains
Category:Mountain navigational boxes
Category:Japan geography navigational boxes

then none of the pages are skipped. Both pre-parse mode and regular editing are affected. If I put a category at the start:

Category:Mountain navigational boxes
Category:Japan geography navigational boxes
Template:100 Famous Japanese Mountains

then only the first category is skipped. After skipping the first category in pre-parse mode, the second category isn't skipped if I start editing. But if I click "stop" and then "start" again, the second category gets skipped too.

It's as though the regex is a one-off, which gets reset on every click of "stop". Let me know if I need to write down more detailed steps to reproduce the bug. —⁠andrybak (talk) 21:52, 10 December 2023 (UTC)Reply

Regexp change not happening

edit

I tried editing Uzbekistan with JWB to fix a typo: "Vladimir Klitschko" to "Wladimir Klitschko" (without quotes). This works correctly. However, if I tick Regular Expression then the change is not made, even though the plain text is a perfectly good regexp. I've noticed a number of other changes not happening recently too, though I don't have details. Has something changed? Certes (talk) 16:50, 12 January 2024 (UTC)Reply

Another case: change Writer's to Writers' in Baseball Writers' Association of America, because they have more than one scribe. Works as text but not as regexp .... unless I turn RETF off. (It's not a misguided WP:AWB/T entry changing it back: the plain text replacement works even with RETF on.) I suspect a timing hazard, with the replacement quietly giving up after n seconds and working or not depending on the speed and load of one's PC. Certes (talk) 23:07, 14 January 2024 (UTC)Reply
The Baseball example now works (perhaps coincidentally, I removed a browser extension which was slowing my PC) but I'm still seeing the behaviour at Uzbekistan. Please can another JWB user try that and see if it works for you? Certes (talk) 21:36, 15 January 2024 (UTC)Reply
Sorry, but JWB is now working so erratically for me (applying about half of the fixes at random) that I'm going to abandon using it until someone can respond. Certes (talk) 13:26, 16 January 2024 (UTC)Reply
Hey, sorry for the delay. I'm not sure what settings you use specifically, but my suspicion is that you're missing the g (Global replace) flag in your regular expression. As stated on WP:JWB#Using regex, you can test your regular expressions in one of the linked websites, where you would also have needed the g flag to match all occurrences. I've updated the documentation to more explicitly mention this.
However, if this is not the issue, I think I'm going to need a bit more information to determine what the issue is. Could you please provide me with some edit diffs which went wrong, or if you've caught them all before submitting, could you let me know which settings on User:Certes/JWB-settings.json I should use to reproduce the issue? Joeytje50 (talk) 09:52, 29 January 2024 (UTC)Reply
Just to elaborate: I tried starting up JWB with the default settings, and adding Uzbekistan as the only page in the list, and filling the replacement fields with Vladimir Klitschko and Wladimir Klitschko, and that worked correctly both with and without regex, for me (using Firefox, at least). Joeytje50 (talk) 09:56, 29 January 2024 (UTC)Reply
Sorry, I never noticed your reply! I did remember to add the g flag (though it might be helpful if it were added by default for compatibility with AWB – I think that used to happen). I tested my regexps elsewhere and also in JWB where they work fine as long as RETF is switched off. However, it clearly works for you so the problem may be at my end. I'm still having the problem but my PC is quite slow (or rather its memory is overloaded with other browsers etc.) and I suspect that a replacement is silently timing out rather than producing a error message. Thanks again for JWB which is still very useful for me as long as I turn off RETF. Certes (talk) 11:46, 11 June 2024 (UTC)Reply

Plugin

edit

Thanks for the wonderful tool. great job. How to use plugins used in AWB in JWB? I couldnt see any option to use or load any plugins. I used that often in ta.wikisource to create pages during transcription. Thanks -- Balaji (Let's talk) 06:37, 14 July 2024 (UTC)Reply

Different regex engine support?

edit

I just spent a bit of time crafting a nice little PCRE with replacement text conditionals only to realize afterwards that JWB is using the JavaScript engine :)

Has there perhaps been any thought of adding a different regular expression engine support?

Looks like it's within the realm of possibility: https://github.com/desertnet/pcre

TIA! --Joy (talk) 16:16, 12 November 2024 (UTC)Reply

If there are any developments in this area, please inform WP:AWB/Typos. They currently jump through hoops to avoid regexp syntax which works in AWB but not JWB, such as negative lookbehinds. Certes (talk) 17:58, 22 December 2024 (UTC)Reply
@Joy: That does look cool, but from what I can see it looks like this is either something that would only work in NodeJS, or it would require some local installation which is not available on Wikimedia platforms. From what I can tell, it's not as simple as just importing a script from some public repo, in the same way JQuery is typically loaded. Unless I'm wrong here, this means it's currently not really possible to do this. However, please let me know if you know a way to make this work on this and other wikis. Then I'll definitely put in some work to support that. Joeytje50 (talk) 12:59, 3 May 2025 (UTC)Reply

Use on Wikispecies

edit

I have installed the script centrally, on meta:User:Pigsonthewing/global.js

If I go to Project:AutoWikiBrowser/Script, the script runs.

But, on Wikispecies, if I go to the equivalent page, I get a "This page does not exist" notice.

Can I use the script on Wikispecies? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:54, 3 December 2024 (UTC)Reply

@Pigsonthewing: I looked into what the problem is, and it seems that it's because it's trying to display the message saying you don't have the rights to use it on that wiki, but an error occurs because allLoaded is not defined. I'm not sure of the solution, but that's the problem. JJPsub>Master (she/they) 01:49, 8 December 2024 (UTC)Reply
@JJPMaster: That's odd; I'm an admin there. Do I need some other bit? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:29, 9 December 2024 (UTC)Reply
@Pigsonthewing Per the code, it should be either you're a sysop or you're listed at wikispecies:Project:AutoWikiBrowser/CheckPage.I have a version at User:Ahecht/sandbox/Scripts/JWB.js that at least fixes the allLoaded bug. --Ahecht (TALK
PAGE
)
17:34, 22 December 2024 (UTC)Reply

The issue persists at Wikispecies, albeit I now see a soft redirect at Project:AutoWikiBrowser/Script (created by JJPMaster on 8 December 2024). I added myself to wikispecies:Project:AutoWikiBrowser/CheckPage. and still only see the soft redirect. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:22, 3 January 2025 (UTC)Reply

See also Wikispecies:User talk:Pigsonthewing#Citation template changes. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:56, 4 January 2025 (UTC)Reply

Skipping problem

edit

Hi guys,

Thank again for this marvelous tool !

I've problem with my skip part here. The tool charge and edit the pages with (\\|\\s?légende\\s?\\=\\s?\\[\\[.*?\\[\\[.*?\\[\\[ (like this one) and skin-invert-image (like that one). If I click on "stop" botton, and then on "start", the tool finally skip the page. Someone can help me ? Simon Villeneuve (talk) 00:21, 26 May 2025 (UTC)Reply
P.S. : I've tested the regex on regex101 and they work. Simon Villeneuve (talk) 00:35, 26 May 2025 (UTC)Reply

This sounds very similar to my bug report above at User talk:Joeytje50/JWB#Bug report: regex in "When page doesn't contain" doesn't work (GoToComment link). —⁠andrybak (talk) 23:55, 27 December 2025 (UTC)Reply

Editing issues

edit

Hi, my sincere apologies for an underinformed message here, but I'm having some issues using JWB here on enwiki. I've been added to the AWB CheckPageJSON and I've installed the script, but pages don't appear in the editing or preview areas. The setup tools for generating page lists work fine, but from my reading of the documentation it looks like I should be seeing some kind of page preview or diff display based on the article listed at the top of the "Enter list of pages:" text area. ("Every page will automatically display the difference between the stored content, and the content after the find & replace rules are applied." Is the stored content loaded automatically?) The interface remains blank to me. Skipping works fine, but the other controls do nothing. Also, I tried to "refresh" the settings on the Setup tab and the message "Loading JWB settings" appears forever. No obvious errors in the debug console. I'm 100% sure I'm missing something obvious... please let me know if there's a "load page" button or similar that I need in order to view pages and corresponding edit diffs. Thanks, Suriname0 (talk) 17:47, 18 July 2025 (UTC)Reply

Suriname0 have you clicked the button "Start" on the tab "Edit"? The diff or preview only start showing after clicking the button "Start". Could you share how you generated the list of pages to edit? —⁠andrybak (talk) 21:38, 18 July 2025 (UTC)Reply
Thank you! This is what I missed, apologies for the dumb question. I'm surprised the skip functionality works before clicking Start. Unrelated, but just to confirm, there's no way to access something like the AWB General Fixes in JWB, right? Suriname0 (talk) 22:14, 18 July 2025 (UTC)Reply
The interface can be overwhelming, don't beat yourself up about it.
There is a checkbox for Wikipedia:AutoWikiBrowser/Typos, but not for Wikipedia:AutoWikiBrowser/General fixes. —⁠andrybak (talk) 22:25, 18 July 2025 (UTC)Reply

removing text

edit

is it possible to use JWB to simply remove text from a page? leaving the 'with' field blank replaces is the text with a break, which sometimes works but is at other times problematic. i couldn't find any clues on regex101.com, but i might not be looking in the right place. MW(tc) 04:23, 13 September 2025 (UTC)Reply

@The Midnite Wolf You'd be replacing things like
  • text to be removed\n
with nothing. Notice that \n at the end (newline). I hope I understood what you meant, otherwise you better give a (minimal) example. Ponor (talk) 08:25, 13 September 2025 (UTC)Reply

Prompt for edit summary?

edit

Thanks for this useful tool @Joeytje50. I was wondering if it would be possible for the script to warn or prompt the user if they do not have an edit summary filled out before they start using JWB. It's happened to me a couple times - I forget to fill out the summary until I've already made several edits. Epicgenius (talk) 14:51, 19 November 2025 (UTC)Reply

rearrange after appending

edit

I find the tool so much useful. Thanks @Joeytje50. I wish to add templates to the end of the page. so while i try to append the template is placed after the categories. In AWB there is an option to rearrange the content such that the category automatically at the end of the page. Is there such option in JWB. Regards -- Balaji (Let's talk) 14:46, 28 December 2025 (UTC)Reply

Balajijagadesh, you can use a regex that replaces $ with the wikitext you want to append. Qwerfjkltalk 12:31, 23 March 2026 (UTC)Reply

Wiki-wide basis

edit

The Installation section states: It is not recommended to install this script on a wiki-wide basis. What exactly does this mean (and why)? I assumed it was about meta:User:.../global.js, but from Wikispecies discussion above, its usage seems acceptable. —Flipping Switches (talk) 11:00, 23 March 2026 (UTC)Reply

@Flipping Switches Given the previous sentence, I assume that means installing it for all users (either as a gadget or via MediaWiki:common.js). --Ahecht (TALK
PAGE
)
13:44, 23 March 2026 (UTC)Reply