Wikipedia:Bots/Requests for approval/DemonDays64 Bot 2
[[User:DemonDays64 Bot|DemonDays64 Bot 2]]
{{Newbot|DemonDays64 Bot|2}}
Operator: {{botop|DemonDays64}}
Time filed: 04:51, Monday, December 30, 2019 (UTC)
Function overview: To edit in HTTPS to applicable links. Everything is the same as at Wikipedia:Bots/Requests for approval/DemonDays64 Bot, but the RegEx is modified in a significant way and the www. should not be removed.
Automatic, Supervised, or Manual: Automatic
Programming language(s): Javascript Wiki Browser
Source code available: In the bot's JWB settings
Links to relevant discussions (where appropriate): Wikipedia:Bots/Requests for approval/DemonDays64 Bot
Edit period(s): When computer is on.
Estimated number of pages affected: Every page with a link on it could be edited eventually. See Wikipedia:Bots/Requests for approval/DemonDays64 Bot for more info.
Namespace(s): Mainspace
Function details:
Hello again! See Wikipedia:Bots/Requests for approval/DemonDays64 Bot; everything is the same except for the RegEx it uses.
This bot was previously approved, but concerns about it removing the
from URLs led to me voluntarily suspending running it. I have returned to update it, but, as the RegEx, the most important part of the bot, is different, I feel that it would be inappropriate to continue with just the approval of the original version (and I would like feedback if I can do this better).
Here is the RegEx that I will use: the selection is with
and the replacement is with
. The code for finding is identical to the original, but the replacement uses capture group #3, which is either
or nothing, so that the
is retained.
Credit to User:Lordtobi for saying how they would do it at User talk:DemonDays64#Removing www; this is very slightly modified from what they said to do.
=Discussion=
- {{t|BAG assistance needed}} — it's been almost 7 days, with no replies. I am not sure I'm doing this correctly and if I should have made/had to make this request in the first place, as this is just a request to be allowed to change the RegEx and get some other people to make sure it's good. Can someone please help? Thanks! DemonDays64 (talk) 23:26, 4 January 2020 (UTC) {{ppor}}
: Now it's been 27 days. Should I have not made a separate request for this change? DemonDays64 (talk) 06:19, 26 January 2020 (UTC)
:Can you confirm if the bot is only changing the scheme (http -> https) and no other part of the URL? -- GreenC 02:40, 21 January 2020 (UTC)
::{{ping|GreenC}} yes. In Chrome or many other non-Firefox browsers, you can see it in action at {{URL|https://regexr.com/4sk2o}}. Capture group 3 is used for this, and will either contain
or be empty. DemonDays64 (talk) 04:13, 21 January 2020 (UTC)
- {{BotTrial|edits=50}} I doubt there will be issues but let's be safe. Primefac (talk) 15:20, 30 January 2020 (UTC)
::thanks! I'm preparing the settings right now, and will run it probably today. DemonDays64 (talk) 15:53, 2 February 2020 (UTC)
:::{{ping|Primefac}} done! Exactly 50 pages edited. DemonDays64 (talk) 05:46, 4 February 2020 (UTC) ({{Bot trial complete}} — JJMC89 (T·C) 04:32, 5 February 2020 (UTC))
::::I spot-checked some of these edits and didn't see any broken link or unwanted modification. Jo-Jo Eumerus (talk) 09:54, 4 February 2020 (UTC)
:::::{{Ping|Primefac}} any final judgement on this? I'd like to get it running soon. Thanks, DemonDays64 (talk) 05:28, 8 February 2020 (UTC)
::::::{{tl|BAG assistance needed}} — it's been a week and a half since anyone commented here. If there are no more concerns, could I get approval, then? Thanks! DemonDays64 (talk) 15:35, 14 February 2020 (UTC)
----
{{BotApproved}} Looks good to me. Approved. As per usual, if amendments to - or clarifications regarding - this approval are needed, please start a discussion on the talk page and ping. --TheSandDoctor Talk 07:21, 17 February 2020 (UTC)
==Amendments==
- On 20 February 2020 a regular expression change to resolve complaints about
being changed toallmusic.com
was approved. --TheSandDoctor Talk 18:04, 17 April 2020 (UTC)http://allmusic.com - On 17 April 2020 a regular expression change to accommodate https was approved. --TheSandDoctor Talk 18:04, 17 April 2020 (UTC)
:The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.