Wikipedia talk:AutoEd#Two bad edit types

{{shortcut|WT:AED}}

{{archives

|auto =

|search = yes

|list =

|collapsible = yes

|collapsed = no

|style =

|bot = Lowercase sigmabot III

|age = 180

}}

{{User:MiszaBot/config

|archiveheader = {{aan}}

|maxarchivesize = 100k

|counter = 3

|minthreadsleft = 2

|minthreadstoarchive = 1

|algo = old(180d)

|archive = Wikipedia talk:AutoEd/Archive %(counter)d

}}

why does AutoEd trash references?

Here is what it let a user do to an article the other day: {{diff||1251021366|1164811500|it closed a references tag and blew away the reference definitions}}. -- mikeblas (talk) 14:47, 25 October 2024 (UTC)

:As the page says, users are responsible for inspecting their edits. This user clearly did not. Aaron Liu (talk) 15:05, 25 October 2024 (UTC)

::I would be surprised if there is code in the default AutoEd setup that adds a closing slash to [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%3Creferences%5C%3E%2F&title=Special:Search&profile=advanced&fulltext=1&ns0=1&ns4=1&ns10=1&ns12=1 <references>, which is used in 4,000 articles]. I suspect that the editor did that one manually. User talk:Trivialist is probably the best place to raise this issue. – Jonesey95 (talk) 12:57, 28 October 2024 (UTC)

:::Actually, Wikipedia:AutoEd/htmltowikitext.js#L-18 does that by default. Aaron Liu (talk) 13:24, 28 October 2024 (UTC)

::::Well, color me surprised! That looks like a bug to me, since <references> is a supported feature of MediaWiki. That line should probably be removed from the AutoEd code. – Jonesey95 (talk) 15:03, 29 October 2024 (UTC)

::::: It looks like that was fixed [https://en.wikipedia.org/w/index.php?title=Wikipedia%3AAutoEd%2Fhtmltowikitext.js&diff=1265777197&oldid=1199059360 here]. Plastikspork ―Œ(talk) 19:35, 23 May 2025 (UTC)

Edit requests to fix only-slightly–common bugs

{{edit request|Wikipedia:AutoEd/htmltowikitext.js|answered=yes}}

Remove lines 17 and 18, per the section immediately above. The part about whitespace isn't nearly worth as much as list-defined references. Aaron Liu (talk) 15:01, 28 December 2024 (UTC)

{{edit request|Wikipedia:AutoEd/core.js|answered=yes}}

Change line 98 to if( document.getElementById('ca-edit') && !document.getElementById( autoEdLinkLocation ) ) { to prevent self-executing AutoEd modules like Dashes from accidentally adding multiple AutoEd portlets. Aaron Liu (talk) 15:01, 28 December 2024 (UTC)

: {{Done}} both. * Pppery * it has begun... 16:30, 28 December 2024 (UTC)

::@Pppery Could you undo the second one? It looks like it broke everything. Sorry. Aaron Liu (talk) 16:38, 28 December 2024 (UTC)

::: As you wish. * Pppery * it has begun... 16:39, 28 December 2024 (UTC)

::::@Pppery Okay, this should work, I tested this one out:
if( document.getElementById( 'ca-edit' ) && !document.getElementById( 'ca-AutoEd' ) ) {. Thanks in advance! Aaron Liu (talk) 16:48, 28 December 2024 (UTC)

::::: {{Done}} * Pppery * it has begun... 16:55, 28 December 2024 (UTC)

AutoEd no longer runs on Chrome and Firefox?

AutoEd doesn't seem to be working on the latest versions of Chrome and Firefox using the Vector 2010 skin anymore. When I click on the "AutoEd" button, it opens the Edit window, but doesn't do anything. Oddly enough, Safari seems to be working just fine. —⁠k6ka 🍁 (Talk · Contributions) 15:37, 11 June 2025 (UTC)

:Works for me. If you try that again after installing the "Show an alert when you encounter JavaScript errors" gadget, do you get any error messages? Or, if you know how to get there, are there any error messages in the dev console? Aaron Liu (talk) 15:55, 11 June 2025 (UTC)

::The really weird thing is... it started working after I enabled the "Show an alert when you encounter JavaScript errors" gadget! —⁠k6ka 🍁 (Talk · Contributions) 16:14, 11 June 2025 (UTC)

:::...ah yes, a heisenbug Aaron Liu (talk) 16:51, 11 June 2025 (UTC)