Wikipedia talk:Ultraviolet/2022/January

Wording
Hello! SO when I revert an edit and I see the user already has a talk page created, I always preview the user's talk page to see how many warnings they've received previously to decide how severe the warning should be (or if I should report them). However I noticed that the button to do this say Preview Userpage which not only isn't where the warnings should go, but it's the talk page instead of the userpage. This should simply just be changed to Preview Talk Page. ― Blaze WolfTalkBlaze Wolf#6545 16:04, 11 January 2022 (UTC)
 * Hi @Blaze Wolf, I've opened a change request for you here. The update should be out when it is released and merged. ✨ Ed  talk!  ✨ 23:57, 11 January 2022 (UTC)

Installing template packs
Hello there! I've tried installing a template pack in the browser's dialog but after i click OK, it didn't installed. Vitaium (talk) 09:51, 14 January 2022 (UTC)


 * Hi @Vitaium! Which template pack did you try to install? It seems you have the following installed: "Quick Welcome", "Trout Pack", "ProblemWelcome", "Welcome IP", and "NonEnglishEdits". Is the template pack in this list? Chlod ( RW • say hi!) 03:41, 15 January 2022 (UTC)

I want to install Speedy Deletion template pack but didn't download after i click install. Vitaium (talk) 03:59, 15 January 2022 (UTC)


 * @Vitaium: This is because the user who made the pack renamed themselves. Use the code  instead. Chlod ( RW • say hi!) 04:03, 15 January 2022 (UTC)

Request improvements
Hi! I am a RedWarn user, and I want to request improvements for this tool:
 * I hope RedWarn's rollback links are also be seen at the page history
 * I hope also that there is an option of disabling user talk pages to add on my watchlist after a warning, cause every time I rollback an edit, I always like to warn the user, after I warned them, their user pages added into my watchlist, which I do not like
 * I know that users can review pending edits using this tool. But I notice that when I revert a pending edit using this tool, my edit does not include at the review log. –Ctrlwiki (talk) 12:52, 15 January 2022 (UTC)


 * The second issue should not happen - in your RedWarn preferences, under "Behaviour", there is the option "Watch Time" which should be disabled by default. It seems like the  property read at info.js:711 is not actually set in   unless the setting is explicitly set, saved, unset and saved (that is the solution I'd recommend until a patch is released, which I can author if useful). Closingbrackettalk 22:06, 16 January 2022 (UTC)
 * I've made a fix which changes the default to "no action", splitting it from the "do not watchlist" option. Apologies for the confusion regarding these options. Chlod ( RW • say hi!) 22:26, 16 January 2022 (UTC)

Warn user about username with emoji
Hello there! I've notice a bug that is, when i try to warn 😂 about username violations of non-script username, it automatically warn ÐŸ˜‚ which is not registered in Wikipedia. This is because due to poor implementation of UTF-8. Vitaium (talk) 12:22, 2 January 2022 (UTC)
 * This bug keeps reappearing at random for random users but no one has a definitive way to reproduce it. RedWarn is already using UTF-8 data and there should be no problems here. Chlod ( RW • say hi!) 04:23, 19 January 2022 (UTC)

Clicking on links while previewing warning crashes warning menu
Hi there, when you click on a link in the preview while warning someone, it makes the warning menu blank and essentially crashes it. I encountered this today while writing a warning, and the code didn't save 🐶 EpicPupper (he/him &#124; talk) 03:24, 19 January 2022 (UTC)
 * Do you get any errors in the browser console? Thanks. ―sportzpikachu  my talk contribs  03:33, 19 January 2022 (UTC)
 * @Sportzpikachu: It doesn't look like there's anything from RW. There's a warning for using jquery.ui over OOUI, an error about analytics (my adblocker blocked them), and a credits message from RW. 🐶 EpicPupper (he/him &#124; talk) 04:09, 19 January 2022 (UTC)
 * Hmm, I'm unable to reproduce this issue. The link simply does not do anything for me. What browser are you on? Safari is known to cause issues with RedWarn. ―sportzpikachu  my talk contribs  04:17, 19 January 2022 (UTC)
 * I'm using Microsoft Edge (Chrominum). I can try another browser. 🐶 EpicPupper (he/him &#124; talk) 04:18, 19 January 2022 (UTC)
 * Hmm, on Firefox they seem to not do anything... 🐶 EpicPupper (he/him &#124; talk) 04:21, 19 January 2022 (UTC)
 * I'll try to reproduce on Chrome. ―sportzpikachu  my talk contribs  04:22, 19 January 2022 (UTC)
 * I can reproduce it on Chrome, error is . I'll create a gitlab issue for tracking. ―sportzpikachu  my talk  contribs  04:24, 19 January 2022 (UTC)
 * Hmm, seems like that error message is unrelated. Will need further debugging. ―sportzpikachu <sub style="display:inline-block"> my talk contribs  04:27, 19 January 2022 (UTC)

Adding new warning template
Hello! I'm attempting to add another warning template to my redwarn with preferences however I appear to be unable to do so. Is this a feature that's not implemented yet or am I thinking of something different? ― <b style="background:#0d1125;color:#51aeff;padding:1q;border-radius:5q;">Blaze Wolf</b>Talk<sub title="Discord Username" style="margin-left:-22q;">Blaze Wolf#6545 16:08, 21 January 2022 (UTC)


 * @Blaze Wolf: There is currently no graphical editing interface for user warnings. You must edit your redwarnRules.json file (which is in a JSON format) yourself to add warnings. Chlod <small style="font-size:calc(1em - 2pt)">( RW • say hi!) 19:11, 21 January 2022 (UTC)
 * Alright sounds good. Looks like the JSON file is technically still in a visual format. ― <b style="background:#0d1125;color:#51aeff;padding:1q;border-radius:5q;">Blaze Wolf</b>Talk<sub title="Discord Username" style="margin-left:-22q;">Blaze Wolf#6545 19:14, 21 January 2022 (UTC)

"noticeApplied" section link causes some scripts to be confused
Hi there, after warning a user, on the user's talk page, a section link after a hash (#) is appended to the URL, e.g. . This causes some scripts such as find-archived-section to be confused, as on WP a hash section link is used for linking to a section. For example, with find-archived-section, the script outputs  This can get annoying sometimes  Would it be possible to have RedWarn use URL parameters instead of section hash links for this purpose? Thanks! 🐶 EpicPupper (he/him &#124; talk) 03:27, 19 January 2022 (UTC)
 * See this archive section for a solution ―sportzpikachu <sub style="display:inline-block"> my talk contribs  03:30, 19 January 2022 (UTC)
 * @Sportzpikachu Thanks for the link! If anyone with the same issue is reading this, I tweaked the previous code a bit so that it's more specific when matching and hopefully has less false positives. Code:
 * 🐶 EpicPupper (he/him &#124; talk) 04:04, 19 January 2022 (UTC)
 * Here's a cleaner solution:
 * ―sportzpikachu <sub style="display:inline-block"> my talk contribs  04:09, 19 January 2022 (UTC)
 * @Sportzpikachu: Ooh, thanks! My regex skills are horrible 🐶 EpicPupper (he/him &#124; talk) 04:10, 19 January 2022 (UTC)
 * I don't see a reason why you'd need to use a regular expression instead of just a simple startsWith check (or even just a substring) since there's no other script that uses "noticeApplied", but whatever floats your boat I guess. Chlod <small style="font-size:calc(1em - 2pt)">( RW • say hi!) 04:10, 19 January 2022 (UTC)
 * I like to eliminate false positives, even if they're uncommon 😛 for instance, if I had named this section "noticeApplied", and linked to it, I'm pretty sure startsWith would have hidden it. But to quote an idiom, to each their own 🐶 EpicPupper (he/him &#124; talk) 04:13, 19 January 2022 (UTC)
 * My bad. Not all noticeApplied hash parameters have 10 digits and end with "-0". I encountered one today that's "noticeApplied-1066733493-1066733442". Probably startsWith is better. 🐶 EpicPupper (he/him &#124; talk) 21:31, 19 January 2022 (UTC)
 * The length varies based on revision ID. The format is noticeApplied-newRev-oldRev (for undo) ✨ <span style="font-family:'Roboto',sans-serif;font-weight:300;text-shadow: 2px 2px 10px black;color:black;">Ed  talk!  ✨ 18:55, 26 January 2022 (UTC)

Stuck at 'Saving message'
I installed RedWarn recently, and it is working good. But there is one minor problem: After reverting a non-constructive edit and warning the user, the page always gets stuck on a loading dialogue 'Saving Message'. To fix this, I need to close and reopen the tab. Is there anything that can be done to stop this from happening? Thanks in advance :) <span style="font-family:Segoe print; color:#FF8C00; text-shadow:skyblue 0.2em 0.2em 0.4em; font-weight:bold">Kpddg  (talk)  11:36, 25 January 2022 (UTC)
 * After you see "saving message" you should be redirected to the user talk page. Check popup blockers that might stop this from happening. What browser are you using? ✨ <span style="font-family:'Roboto',sans-serif;font-weight:300;text-shadow: 2px 2px 10px black;color:black;">Ed  talk!  ✨ 18:53, 26 January 2022 (UTC)
 * I am using Chrome. There are no pop-up blockers. But it gets stuck there and does not go to the user talk page. <span style="font-family:Segoe print; color:#FF8C00; text-shadow:skyblue 0.2em 0.2em 0.4em; font-weight:bold">Kpddg   (talk)  02:25, 27 January 2022 (UTC)

Automatic page watch upon revert
Hello! I would like to request a feature be added where Redwarn will automatically add a page to your watchlist upon reverting an edit with it. Currently the only page watching RedWarn appears to do is user talk page watching upon warning the user. Twinkle already does this so I don't understand why RedWarn doesn't. It would make RedWarn a much better anti-vandal tool because if a vandal immediately either vandalizes the page again, or manually reverts your edit (I specify manually since you aren't notified of manual reverts) you would see it in your watchlist and would be able to revert the user again. ― <b style="background:#0d1125;color:#51aeff;padding:1q;border-radius:5q;">Blaze Wolf</b>Talk<sub title="Discord Username" style="margin-left:-22q;">Blaze Wolf#6545 01:17, 28 January 2022 (UTC)