MediaWiki talk:Gadget-AjaxQuickDelete.js/Archive/2017

Latest comment: 6 years ago by Perhelion in topic Notification

Bug. Malforming DR rationale

{{Edit request}} Somehow this gadget (I think) is malforming DR rationales when a duplicate tag is converted to deletion tag and a DR is started. It splits the word "duplicate" in 2 and the result looks so: "This file was initially tagged by *username* as duplicate (dup) and the most recent rationale was: licate|1=File:xxx.jpg". Examples: [1], [2], +more 150+. --XXN, 00:03, 25 March 2017 (UTC)

Hey XXN, thanks for report. Funny is that the error is in the template itself, because there (probably for storage reasons) the Regexp is included.
Here is the fix on Template:Duplicate/layout:
-=<nowiki>/\{\{\s*([Dd]upe?|[Dd]uplicat(?:e|ion)|[Ee]xact duplicate)\s*(?:\|\s*(?:1\=)?)?([^\{\}]*)\}\}/</nowiki>
+=<nowiki>/\{\{\s*([Dd]uplicat(?:e|ion)|[Ee]xact duplicate|[Dd]upe?)\s*(?:\|\s*(?:1\=)?)?([^\{\}]*)\}\}/</nowiki>
(PS: Now I understand a bit more why admins so rarely using this function :P) -- User: Perhelion 22:50, 25 March 2017 (UTC)
@Perhelion and XXN:   Done Special:Diff/238708421. --jdx Re: 12:27, 27 March 2017 (UTC)
This section was archived on a request by: Thank you Perhelion & Jdx. XXN, 14:33, 27 March 2017 (UTC)

Trim namespace

{{Edit request}} As someone complained about on the Ger Forum the name-space prefix is unnecessary and only disturbing and annoying. I agree to this. So please just remove "File:" from the pre-filled input field. User: Perhelion 10:27, 10 January 2017 (UTC)

PS: Here is the small needed "fix change". User: Perhelion 22:09, 12 January 2017 (UTC)
I withdraw my request, because it needs more user opinions. It would also be need a change of the input description to be more clear (there would be also a better solution with nothing to change in the function, if there is a consensus to this). User: Perhelion 21:42, 24 January 2017 (UTC)
This section was archived on a request by: -- User: Perhelion 10:59, 24 July 2017 (UTC): too special

Melania Trump official portrait as First Lady.png

{{Edit request}} I am unable to remove the speedy delete tag or convert to a regular DR for File:Melania Trump official portrait as First Lady.png --Sreejith K (talk) 18:45, 3 April 2017 (UTC)

Hey Sreejithk, this is a very similar problem as above (only with a different template). Actually all redirects must be included in the Regexp of the template itself.[3] (as we see there are much more) Curios is that the SD is something special with parameter redirect (I guess the above regexp must be updated too). Here is the fix for Template:Speedydelete:
-=/\{\{\s*(Speedy(?:[ \-]?delete)?|Speedy ?deletion|Speedilydelete|Noncommercial|Nonderivative|löschen|db|spd|qd|Sdelete|SLA|Spdel|Ek)\s*(?:\|\s*(?:(?:1|source)\=)?)?([^\{\}]*)\}\}/i
+=/\{\{\s*(Speedy(?:[ \-]?delet(?:e|ion))?|Speedilydelete|Noncommercial|Nonderivative|löschen|db|spd|qd|Sdelete|SLA|Spdel|Ek|(?-i:SD))\s*(?:\|\s*(?:(?:1|source)\=)?)?([^\{\}]*)\}\}/i
Theoretically there would be now a potential dysfunction if the language code {{Sd}} is present, but I added the (?-i) option input argument (as the insensitive flag is present). So this template name is anyway a bit unlucky. -- User: Perhelion 23:04, 3 April 2017 (UTC)
@Perhelion: Done: Special:Diff/243151122. --jdx Re: 10:28, 7 May 2017 (UTC)
Problem still exists (in another form), unfortunately this was not tested by me (PHP regexp, shame on me), Commons:Village_pump#Seeking_help_re_MediaWiki:Gadget-QuickDelete.js_usage
The {{SD}} is not an adequate shorthand for Speedy, I may propose to merge this template in to the Speedy and deprecate the usage. -- User: Perhelion 12:16, 20 May 2017 (UTC)
But I found a proper solution on template:SD itself. Untested! -- User: Perhelion 13:07, 20 May 2017 (UTC)
This section was archived on a request by: -- User: Perhelion 10:57, 24 July 2017 (UTC)

Not getting the Nominate for Deletion option on filepages

I've had AjaxQuickDelete enabled for quite a while now, but today (or at least very recently) the "nominate for deletion" option has disappeared from file pages. I can still see it on Commons: pages, and this page, but no file pages. Anyone got any idea why? Multichil reckoned it was something to do with deprecated java in my common.js, but removing that has not resolved the issue. -mattbuck (Talk) 21:53, 3 May 2017 (UTC)

@Mattbuck: You haven't touched User:Mattbuck/monobook.js in 4+ years, perhaps the problem is there or something it calls.   — Jeff G. ツ 02:20, 4 May 2017 (UTC)
Jeff G. I just blanked that and everything's back. Thanks for the help. By the look of it I had AQD enabled via gadgets and manually via monobook. Plus who knows what other detritus. -mattbuck (Talk) 06:39, 4 May 2017 (UTC)
@Mattbuck: You're welcome. Glad it worked.   — Jeff G. ツ 06:42, 4 May 2017 (UTC)
This section was archived on a request by: -- User: Perhelion 10:55, 24 July 2017 (UTC)

Webm files do not get full set of tools

Namely the "Report Copyright Violation" does not appear. It works just fine on other file formats Ronhjones  (Talk) 23:10, 20 May 2017 (UTC)

Found a workaround - click edit first, then the tools appear. Ronhjones  (Talk) 23:35, 14 June 2017 (UTC)
This section was archived on a request by: -- User: Perhelion 11:40, 24 July 2017 (UTC): seems invalid

Rv. last changes

@Perhelion: I apologize for reverting your last changes to the script, but after them, the buttons for "no source", "no permission", "no license" and "report copyright violation" completely vanished from the left side bar. After the revert, they are back as usual. It seems to be some bug in your last changes.-- Darwin Ahoy! 03:55, 4 July 2017 (UTC)

Hey DarwIn, sorry I simply forgot the remove the code out-comenting (painfully, as this gots an error on reload). -- User: Perhelion 11:39, 4 July 2017 (UTC)
This section was archived on a request by: -- User: Perhelion 10:56, 24 July 2017 (UTC)

Process duplicates

When trying to use the Process duplicates function on file pages, the processing window pops up but none of the resulting buttons seem to do anything anymore (I don't know when it started failing, but I think only in the last day or so.) I mentioned the problem at Commons:Village pump#VisualFileChange broken before figuring out that button was related to this gadget. Any ideas on what's going on? Huntster (t @ c) 13:26, 25 August 2017 (UTC)

This section was archived on a request by: -- User: Perhelion 13:41, 21 December 2017 (UTC)

Move files

I can't move use the gadget for now, and always that I try to do it, it move the file, but when it replace the links, appear a message: "Ordering CommonsDelinker to replace all usage" and never charge. Is not my internet, because I'm can do this feedback and the gadget don't charge yet. Mr. Fulano (talk) 02:42, 26 August 2017 (UTC)

This section was archived on a request by: -- User: Perhelion 13:41, 21 December 2017 (UTC)

Notification

@Perhelion: The notification option is nice, but from a usability standpoint, it's backwards. One should include an option to do something, not to not do something.

The format today:

(default unchecked) Don't notify users

Better code:

(default checked) Notify users

We should update this ASAP before people get used to the new format. I would prefer if you could do it, since you worked in the code, but I will do it if you would rather. Magog the Ogre (talk) (contribs) 19:38, 22 December 2017 (UTC)

I guess you are right, I thought the same. Thanks for feedback. (OT: I'll update CatAlot today). -- User: Perhelion 22:34, 22 December 2017 (UTC)
This section was archived on a request by: -- User: Perhelion 12:25, 23 December 2017 (UTC): done
Return to "Gadget-AjaxQuickDelete.js/Archive/2017" page.