Wikipedia talk:AutoEd

From Wikipedia, the free encyclopedia

Troubleshooting Custom Module

I have a custom module for AutoEd created here, which I haven't been able to get working. I'm a little unclear as to whether I should be using common.js or monobook for function importing. Basic AutoEd functions were previously working but now throw "AutoEd core error: autoEdFunctions is undefined" since using both monobook and common.js. Any advice appreciated.

Thanks in advance! 81567518W (talk) 00:57, 16 October 2025 (UTC)

I think you're missing an "else". Look at the bottom of Wikipedia:AutoEd/wikilinks.js for a similar example. – Jonesey95 (talk) 16:25, 16 October 2025 (UTC)
Thanks, I've added the else statement but not seeing any changes. 81567518W (talk) 02:49, 17 October 2025 (UTC)
You are welcome to take a look at one of my custom functions at User:Jonesey95/AutoEd/month.js, but I did a bunch of customization to avoid running the main AutoEd functions and only run my specific function, so YMMV. – Jonesey95 (talk) 02:58, 17 October 2025 (UTC)
Finally got it to work by hooking it into AutoEdFunctions, thank you! 81567518W (talk) 03:31, 17 October 2025 (UTC)

Curlyfixer breaking images

Please see this edit for an example. 81567518W (talk) 13:19, 26 November 2025 (UTC)

I think the proper solution is to rename the file so it doesn't contain curly braces. I've filed a rename request. Aaron Liu (talk) 02:49, 12 December 2025 (UTC)

Running AutoEd

Hello! Apologies for my naiveté. I've just installed Auto Ed and it shows up in my tools dropdown. When I click it, it opens my editor, but nothing else happens? This seems like the same problem mentioned above, but I'm not sure where or how to install the "Show an alert when you encounter JavaScript errors" gadget. I do see some errors in the console but they're not descriptive enough for me to see a clear cause. Veggiegalaxy (talk) 18:18, 4 December 2025 (UTC)

Hum. I found and enabled the "show me an alert when you encounter javascript errors" but still no dice. Veggiegalaxy (talk) 18:21, 4 December 2025 (UTC)
Veggiegalaxy, perhaps you could say what the errors are? Are they related to autoed? Does this still happen when you disable everything except autoed? Qwerfjkltalk 18:26, 4 December 2025 (UTC)
Hi @Qwerfjkl! Sure. Here they are. They don't seem to be related to auto ed. Also, sorry, but what is the best way to disable everything except auto ed? Let me poke around in settings.
mw.xLab.getExperiment(): The "xlab-mw-module-loaded-v2" experiment isn't registered. Is the experiment configured and running?
index.js:70 mw.xLab.getExperiment(): The "logged-out-retention-round2" experiment isn't registered. Is the experiment configured and running?
index.js:70 mw.xLab.getExperiment(): The "sticky-headers" experiment isn't registered. Is the experiment configured and running?
startup.js:1319 This page is using the deprecated ResourceLoader module "jquery.ui".
Please use Codex instead.
execute @ startup.js:1319Understand this warning
startup.js:1319 This page is using the deprecated ResourceLoader module "moment".
[1.44] Use mediawiki.DateFormatter or native Intl function instead. See https://phabricator.wikimedia.org/T146798 Veggiegalaxy (talk) 18:35, 4 December 2025 (UTC)
Veggiegalaxy, none of those look related, you're correct. The easiest way to only run autoed is to run the page in safemode (?safemode=1) and then run importScript('Wikipedia:AutoEd/complete.js'); (or whichever variant you used) in the developer console. Qwerfjkltalk 18:38, 4 December 2025 (UTC)
@Qwerfjkl Hm, okay. I just chose a page at random, and appended safemode:
https://en.wikipedia.org/wiki/Sri_Ksetra_kingdom?safemode=1
I ran importScript('Wikipedia:AutoEd/complete.js');in the console and it returned <script src="/w/index.php?title=Wikipedia:AutoEd/complete.js&action=raw&ctype=text/javascript"></script>
but not sure what to do with that? Veggiegalaxy (talk) 18:45, 4 December 2025 (UTC)
Veggiegalaxy, well, then you see if autoed works. (But I think autoed loads on the editing pages, not when viewing the article?) Qwerfjkltalk 19:34, 4 December 2025 (UTC)
@Qwerfjkl For some reason... it's now suddenly working. Thanks for talking me through it! Veggiegalaxy (talk) 19:37, 4 December 2025 (UTC)

Customization

The instructions for customization state:

To change the variables, just copy the following into your monobook.js page, where you should also have the "basic" preset imported ...

My monobook.js doesn't exist, so I dont have any "basic" preset imported. Where do I get this, and how do I import it?

Thanks --Lexiconaut (talk) 05:39, 22 December 2025 (UTC)

The page you want to edit is User:Lexiconaut/common.js. See User:Jonesey95/vector-2022.js, where I import some AutoEd scripts. I don't use the basic.js or complete.js scripts, preferring to run only code that I have written, but if you remove the // comment characters and paste the basic.js line into your common.js, you might be able to get things to work. – Jonesey95 (talk) 00:46, 23 December 2025 (UTC)
Thank you! That worked. --Lexiconaut (talk) 01:08, 23 December 2025 (UTC)

It breaks legitimate constructions like e.g.

  • [[Carbon|C]][[Hydrogen|H]] (CH₄)
  • benzo[''e''][1,4]diazepine (benzo[e][1,4]diazepine)
  • [Co(NH₃)₆][Cr(CN)₆] (both-ion coordination complex salts)

by adding a space between ] and [.

(See e.g. my revert 1340002663, btw with edit link in summary.)

Rude str = str.replace(/\]\[/g, "] [") in links.js is to blame.

--Mykhal (talk) 16:15, 23 February 2026 (UTC)

Things like the individual elements in CH4 probably shouldn't be linked, but you're right that the script breaks "(+)-sparteine surrogate"
I guess we might want to remove that line. I'm not sure if I should file an edit request though because I'm unsure how often that line is used. Aaron Liu (talk) 16:56, 23 February 2026 (UTC)
This was only one of many examples, see more my today's edits. But I would't entirely exclude a possibility that it's fixing some much more common real issue. —Mykhal (talk) 17:38, 23 February 2026 (UTC)
Yeah, I did mean examples of any real issue it's fixing. Aaron Liu (talk) 02:11, 24 February 2026 (UTC)

Where it?

After an afternoon editing stoppage, my auto ed tab disappeared. Any suggestions? Regards Keith-264 (talk) 21:09, 5 March 2026 (UTC)

All user scripts have been temporarily disabled due to a misstep during security testing. – Jonesey95 (talk) 22:03, 5 March 2026 (UTC)
Ah, thanks Keith-264 (talk) 22:38, 5 March 2026 (UTC)

Related Articles

Wikiwand AI