Wikipedia talk:Ultraviolet/2022/January

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

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 Steve M/DeoNTKaRat 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 rw.config.rwWatchTime property read at info.js:711 is not actually set in rw.config 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 | talk) 03:24, 19 January 2022 (UTC)

@EpicPupper: Do you get any errors in the browser console? Thanks. ―sportzpikachu my talkcontribs 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 | talk) 04:09, 19 January 2022 (UTC)
@EpicPupper: 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 talkcontribs 04:17, 19 January 2022 (UTC)
I'm using Microsoft Edge (Chrominum). I can try another browser. 🐶 EpicPupper (he/him | talk) 04:18, 19 January 2022 (UTC)
Hmm, on Firefox they seem to not do anything... 🐶 EpicPupper (he/him | talk) 04:21, 19 January 2022 (UTC)
@EpicPupper: I'll try to reproduce on Chrome. ―sportzpikachu my talkcontribs 04:22, 19 January 2022 (UTC)
I can reproduce it on Chrome, error is index.php?title=User:RedWarn/.js&action=raw&ctype=text/javascript:672 Uncaught TypeError: e.data.includes is not a function at window.onmessage (index.php?title=User:RedWarn/.js&action=raw&ctype=text/javascript:672:65). I'll create a gitlab issue for tracking. ―sportzpikachu my talkcontribs 04:24, 19 January 2022 (UTC)
Hmm, seems like that error message is unrelated. Will need further debugging. ―sportzpikachu my talkcontribs 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? ― Blaze WolfTalkBlaze 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 (RW • say hi!) 19:11, 21 January 2022 (UTC)
Alright sounds good. Looks like the JSON file is technically still in a visual format. ― Blaze WolfTalkBlaze 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. #noticeApplied-1066587698-0. 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 No search results found for section "noticeApplied-1066587698-0" in archives. It may have been removed or renamed, or you may have followed a malformed link. 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 | talk) 03:27, 19 January 2022 (UTC)

@EpicPupper:: See this archive section for a solution ―sportzpikachu my talkcontribs 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:
$(function() {
    if (/#noticeApplied-\d\d\d\d\d\d\d\d\d\d-0/.test(window.location.hash))
        document.head.innerHTML += "<style>.archived-section-prompt{display:none}</style>"
});
🐶 EpicPupper (he/him | talk) 04:04, 19 January 2022 (UTC)
@EpicPupper: Here's a cleaner solution:
$(function() {
    if (/#noticeApplied-\d{10}-0/.test(window.location.hash))
        document.head.innerHTML += "<style>.archived-section-prompt{display:none}</style>"
});
sportzpikachu my talkcontribs 04:09, 19 January 2022 (UTC)
@Sportzpikachu: Ooh, thanks! My regex skills are horrible 🐶 EpicPupper (he/him | 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 (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 | 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 | talk) 21:31, 19 January 2022 (UTC)
The length varies based on revision ID. The format is noticeApplied-newRev-oldRev (for undo) ✨ 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 :) 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? ✨ 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. 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. ― Blaze WolfTalkBlaze Wolf#6545 01:17, 28 January 2022 (UTC)