In the wide world of MediaWiki talk:Gadget-ImageAnnotator.js, there is a great diversity of approaches, opinions and perspectives. The complexity of this topic/individual/event has generated endless discussions and debates over time, becoming a central element in various areas of knowledge. From its impact on society to its influence on popular culture, MediaWiki talk:Gadget-ImageAnnotator.js has captured the attention of scholars, experts, and fans alike. In this article, we will explore some of the most relevant and fascinating facets of MediaWiki talk:Gadget-ImageAnnotator.js, analyzing its importance and implications in different contexts.
This gadget is designed to be run on Commons via commons:MediaWiki:Common.js (presumably so that users can't disable the gadget?). However, that definition excludes special pages and non view/submit wgActions, which we unfortunately aren't doing here. Xaosflux I'm curious what you think about this, but I think we should create a helper gadget to handle those checks here, and then load the gadget if appropriate. We could edit the local version, but I think it's probably better to make it easier to sync with the Commons version. ~ Amory(u • t • c)17:22, 22 November 2020 (UTC)
Secondary to this, is the reason we can't just import the Commons script because of the required libraries? Haven't looked too closely but an edit request on Commons could help with that, yeah. ~ Amory(u • t • c)17:22, 22 November 2020 (UTC)
@Amorymeltzer:Special:GadgetUsage says 22,000 users have this locally enabled, I'm presuming this is for dealing with local images and has nothing to do with things that are actually on commons? If this doesn't actually do anything here, we should just remove it. I recall someone asking to have the commons version synced in which is why I transwiki'd it. — xaosfluxTalk20:54, 22 November 2020 (UTC)
Also, no idea why it has to be slow loaded via common.js instead of just making it a default hidden gadget if commons wants to force it on everyone. — xaosfluxTalk21:13, 22 November 2020 (UTC)
As below, it's useful here. Not sure what you mean by this, though; commons' commons:MediaWiki:Common.js has no power here. I only meant that, if (as I suggest) we keep this synced with Commons' version and use a loader in our gadget, there may not be a need to actually maintain it here (barring libraries); cf MediaWiki:Gadget-HotCat.js. ~ Amory(u • t • c)21:29, 22 November 2020 (UTC)
Yep definitely not worth maintaining this locally when it can be loaded from commons. The performance penalty of loading the unminified code should be negligible. It looks like commons is loading it via Common.js only to avoid having to create a separate loader gadget. (Forcing it on everyone isn't the reason, because an optout option is provided). – SD0001 (talk) 11:03, 17 April 2021 (UTC)
@Xaosflux, Amorymeltzer, and SD0001: Hey, are y'all still planning on maintaining this local fork? I spent a few hours chasing a bug in one of my scripts, which turned out to be caused by MediaWiki:LAPI.js (which AFAIK is imported only by imageAnnotator) replacing String.prototype.endsWith with its own broken version. Ugh. If you want to keep this around, I'll submit a patch against the local fork. Suffusion of Yellow (talk) 22:13, 18 November 2023 (UTC)
I certainly have to plans to "maintain" this myself; I will normally work interface-protected edit requests as they come up. — xaosfluxTalk11:25, 19 November 2023 (UTC)
I put in a minimal request at MediaWiki talk:LAPI.js. Not an ideal solution, since we're diverging even more from the commons version, but that's as much as want to do. If "someone else" wants to sync this up, or try to fix the commons version, be my guest. Suffusion of Yellow (talk) 21:12, 19 November 2023 (UTC)
Interface-protected edit request on 29 December 2023
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request.
Please remove
ATTENTION:
This is in the Gadget- prefix but not actually registered nor loaded as a Gadget. It is
loaded directly by ], raw, unminified and in the global scope.