User talk:Rillke/MwJSBot.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

User-interface edit request

[edit]

{{Editrequest}} Per phab:T233442, editToken has been deprecated and superseded by csrfToken. This is affecting every scripts/gadget that still uses this old deprecated method to get tokens for sending an API request. For example this discussion on meta. I noticed this script also uses the deprecated method, and thus this script is not working for a few days. mw.user.tokens.get('editToken') should be replaced by mw.user.tokens.get('csrfToken'). Per a message on my talk page, it seems that many users who uses SVG editor script to edit SVG, are facing this problem. And SVG editor script uses this script used this MwJSBot script to upload files, so I am putting a request here. Please fix this as soon as possible. Masum Reza📞 18:04, 13 October 2019 (UTC)[reply]

✓ Done Thank you! -- User: Perhelion 19:41, 13 October 2019 (UTC)[reply]
@Perhelion and Masumrezarock100: hello, i am still not able to upload edited svgs - the message as little bowser-popup: api error notoken: the token parameter must be set
either i have to refresh some stuff (how?) or it still doesnt work - thx --Mrmw (talk) 20:44, 13 October 2019 (UTC)[reply]
Yeah, we forgot to update the SVG editor script. I've made a request there. I just hope it will fix this issue. Masum Reza📞 20:45, 13 October 2019 (UTC)[reply]
@Perhelion and Masumrezarock100: sorry, still the same error here - have i to refresh something? --Mrmw (talk) 21:20, 13 October 2019 (UTC)[reply]
No, refreshing now won't fix this issue. We still have to update the SVG editor script. Masum Reza📞 21:35, 13 October 2019 (UTC)[reply]
Recently editToken was removed from core. It was deprecated 3 years ago. I am surprised that there are still scripts that use this token. And that is why sending a request to the server using mw.user.tokens.get('editToken') method just returns an invalid response. We should replace all editToken with csrfToken. All scripts that uses this method won't work otherwise. We'll have to address this situation quickly. I just searched Commons using the query and it appears many script still uses it. @Perhelion: Perhaps one can run a bot to migrate all use of editToken to csrfToken? Masum Reza📞 00:45, 14 October 2019 (UTC)[reply]
@Perhelion and Masumrezarock100: now it works thx --Mrmw (talk) 07:19, 14 October 2019 (UTC)[reply]
@Masumrezarock100: I'm not sure on this, but I guess Krinkle knows more and can do it. The main usage is indeed in the userspace, so there is no real important need for this. -- User: Perhelion 02:27, 16 October 2019 (UTC)[reply]
✓ Done mostly by Krinkle. -- User: Perhelion 04:31, 16 October 2019 (UTC)[reply]

still working?

[edit]

@Masumrezarock100: hi, is the script still working? there is no dropdown in edit menu - can anybody help? thx --Mrmw (talk) 17:06, 1 November 2019 (UTC)[reply]

Works for me. Could you try again? If this problem still continues, could you tell us what browser, and skin you are using? And could you check your browser console? Thanks. Masum Reza📞 17:57, 1 November 2019 (UTC)[reply]

@Masumrezarock100: now it works again, strange - dont know what the problem was - sorry and thx --Mrmw (talk) 19:32, 1 November 2019 (UTC)[reply]

The library providing the drop down menu was broken. -- Rillke(q?) 19:50, 1 November 2019 (UTC)[reply]
Yeah, it seems so. I use Timeless skin, so I never encountered this bug. Masum Reza📞 23:47, 1 November 2019 (UTC)[reply]

abusefilter-warning-overwriting-artwork

[edit]

Hello, May I ask what the purpose of the filter "overwriting artwork" is?, I tried reuploading a blanked-out-artwork image and was refused with the message: 00011: FAILED: abusefilter-warning: ⧼abusefilter-warning-overwriting-artwork⧽ (I did try a second time and succeeded)

Why on earth would I (or anyone) need to be stopped from overwriting an artwork image?, –Davey2010Talk 18:40, 2 February 2023 (UTC)[reply]