MediaWiki talk:Gadget-ACDC.js
| This script, AC/DC, is a JavaScript gadget which can be enabled or disabled in your Preferences. |
i18n | Gadget translations:
internationalisation needs to be implemented |
Add stop button
{{Edit request}} Please copy the latest code from User:Lucas Werkmeister/ACDC-dev.js (feel free to try it out first) – while saving, the “publish” button now turns into a “stop” button, so you can kind of “suspend” batches, and later “resume” them (by clicking “publish” again) as long as you’ve kept the page open. --Lucas Werkmeister (talk) 20:56, 12 September 2019 (UTC)
- @Jean-Frédéric: I forgot that you said I should ping you directly as well :) --Lucas Werkmeister (talk) 20:57, 12 September 2019 (UTC)
Tag edits
{{Edit request}} @Jean-Frédéric: please copy the latest code from User:Lucas Werkmeister/ACDC-dev.js (feel free to try it out first, I only tested the unbuilt code) – this should tag all edits with “ACDC” (see recent changes). --Lucas Werkmeister (talk) 13:18, 19 September 2019 (UTC)
Done. Jean-Fred (talk) 14:50, 19 September 2019 (UTC)
- And it works, thanks! --Lucas Werkmeister (talk) 16:11, 19 September 2019 (UTC)
Error inside OO.ui.mixin.LookupElement.prototype.getRequestCacheDataFromResponse
Hey User: Lucas Werkmeister]!
There is an error in this script being flagged in the logs. Error message is: TypeError: t.query is undefined https://logstash.wikimedia.org/app/dashboards#/doc/logstash-*/logstash-2021.04.10?id=KJiDu3gBA6MeBtBq3Dqb
Hope this is helpful! Jdlrobson (talk) 19:02, 10 April 2021 (UTC)
Parse error: Unexpected: function on line 20
@Lucas Werkmeister: Since today, maybe related to the deployment train to 1.42.0-wmf.13 today, ACDC is not longer loaded. I get a JS error on the Firefox console: "Parse error: Unexpected: function on line 20". Raymond (talk) 20:30, 10 January 2024 (UTC)
- Must be related to T75714, I guess, though that’s supposed to allow more JS and not less. I’ll take a look, thanks… Lucas Werkmeister (talk) 21:21, 10 January 2024 (UTC)
- @Raymond: Should be working again now (tested with ?debug=2, might still need a bit of time to fall out of various caches). Lucas Werkmeister (talk) 22:22, 10 January 2024 (UTC)
- @Lucas Werkmeister Thank you for your extensive debugging and very fast fix. It works now. Btw: What ist the difference between ?debug=true and ?debug=2 ? I was aware of the first only. Raymond (talk) 07:08, 11 January 2024 (UTC)
- @Raymond: MediaWiki currently has two debug modes, the legacy one (debug=1) and a newer implementation that’s usually faster (debug=2, see T85805); eventually debug=true will be changed to refer to the new implementation (or at least, I assume so, though I can’t find a task for it at the moment), but I already got into a habit of using debug=2 at work. Lucas Werkmeister (talk) 18:31, 11 January 2024 (UTC)
- @Lucas Werkmeister Thank you for your extensive debugging and very fast fix. It works now. Btw: What ist the difference between ?debug=true and ?debug=2 ? I was aware of the first only. Raymond (talk) 07:08, 11 January 2024 (UTC)
- @Raymond: Should be working again now (tested with ?debug=2, might still need a bit of time to fall out of various caches). Lucas Werkmeister (talk) 22:22, 10 January 2024 (UTC)
Fix iteration to `for ... in` in line 182
{{Edit request}}
I've created a PR on GitHub for that, but in line 182, the iteration should use for ... in instead for ... of, as it tries to iterate over an object and not an array. Msz2001 (talk) 18:48, 7 June 2025 (UTC)