Jump to content

Wikipedia talk:AutoEd

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Troubleshooting Custom Module

[edit]

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)[reply]

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)[reply]
Thanks, I've added the else statement but not seeing any changes. 81567518W (talk) 02:49, 17 October 2025 (UTC)[reply]
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)[reply]
Finally got it to work by hooking it into AutoEdFunctions, thank you! 81567518W (talk) 03:31, 17 October 2025 (UTC)[reply]

Curlyfixer breaking images

[edit]

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

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)[reply]

Running AutoEd

[edit]

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)[reply]

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)[reply]
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)[reply]
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)[reply]
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)[reply]
@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)[reply]
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)[reply]
@Qwerfjkl For some reason... it's now suddenly working. Thanks for talking me through it! Veggiegalaxy (talk) 19:37, 4 December 2025 (UTC)[reply]

Customization

[edit]

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)[reply]

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)[reply]
Thank you! That worked. --Lexiconaut (talk) 01:08, 23 December 2025 (UTC)[reply]