User talk:Evad37/OneClickArchiver.js

Errors/fork
I just posted on the old page about some errors I was encountering (they may apply to your version, too, or you may have fixed them). When I noticed the maintainer was blocked, I went looking for a replacement and noticed you've taken on the maintenance. Shouldn't we just redirect the old page to yours? I doubt most people still using the older version know about your one, and I don't imagine anyone would want to stick with the unmaintained version over one being maintained. &#123;{u&#124; Sdkb  }&#125;  talk 22:18, 15 November 2020 (UTC)


 * Sdkb, re: Shouldn't we just redirect the old page to yours? – we don't seem to have any kind of guidelines or procedures for notifying users about outdated userscripts. Here are some of the approaches:
 * Simple blanking, examples: User:Technical 13/Scripts/OneClickArchiver.js, User:SD0001/DiscussionCloser.js
 * Blanking with a log message to browser console that users should uninstall them, examples: User:AWeenieMan/furmeScroller.js, User:Ale jrb/Scripts/csdcheck.js, User:Smith609/toolbox.js
 * Banners at the top of documentation, examples: User:Technical 13/Scripts/OneClickArchiver and User:Σ/Testing facility/Archiver. Perhaps these should be standardized into User script notice or something like that.
 * For archiving helper scripts in particular, the page One click archiving was overhauled recently. All the unmaintained scripts were moved into their own section. Some, but not all, were delisted from User scripts/List. —⁠andrybak (talk) 20:43, 15 June 2024 (UTC)

Archived to wrong subpage
Any idea what happened here: ? Not sure if that was a bug in script, or the page. Suffusion of Yellow (talk) 18:14, 10 February 2021 (UTC)


 * Suffusion of Yellow, I recommend switching to User:Elli/OneClickArchiver, an updated version of Evad37's script. For other scripts, see One click archiving. —⁠andrybak (talk) 20:47, 15 June 2024 (UTC)

Watchlisting
Can this be configured not to added the archive pages to my watchlist? When I archive a talk page section, I have no need to see subsequent changes to the archive page the section was sent to. Largoplazo (talk) 02:48, 2 October 2021 (UTC)

ClueBot III
Can I request an extra feature supporting integration with User:ClueBot III pages format configuration? Currently it archives under archive/ prefix. (Take a look at my HistoryHelper script btw!) Thanks! AXO NOV (talk) ⚑ 13:22, 28 May 2022 (UTC)

Incorrect archive target
@, When archiving on a subpage, the archived threads went to the archive of the subpage's basepage (see Special:PageHistory/User talk:Joeytje50/JWB/Archive 1). By the way, for anyone else posting on this page, Evad37 hasn't been around since January. Good luck! &#8213;  Qwerfjkl talk  06:16, 12 July 2022 (UTC)

Feature request: add "Unarchive" link to archive pages
Feature request: add "Unarchive" link to archive pages. Then when clicked, do a one click un-archive. – Novem Linguae (talk) 02:33, 19 October 2022 (UTC)

Always uses Archive 1 as archive target even though there are 2 or more than one archives
This appears to be a bug that this script Always uses Archive 1 as archive target even though there are 2 or more than one archives. See this page history for example. Venkat TL (talk) 10:37, 24 October 2022 (UTC)
 * A few observations:
 * The bot on that page is User:ClueBot III/ArchiveThis.
 * Its numberstart parameter is set to 1.
 * Archive 1 is larger than the 75000 byte threshold.
 * Despite numberstart being set to 1, it archived material to Archive 2 on March 11, 2022, and March 15, 2022without changing the numberstart parameter to 2.
 * But now I see that when you just used OneClickArchiver, it sent everything to Archive 1.

So, yes, this is strange, and seems a recent development. Largoplazo (talk) 11:37, 24 October 2022 (UTC)

How to get the counter to work in translations of the "/Archive"?
Hello @Evad37, are you still available on Wikipedia? I'm having difficulties in implementing this amazing gadget on another project. But instead of e.g. /Archive 3 we have these subpages translated as /Arhiva 3. I can't seem to find what needs to be altered for the counter to work, because whatever I do, it always archives not to the latest archive but Arhiva 1. Much appreciation and best regards! -Vipz (talk) 00:30, 13 January 2023 (UTC)

TypeError when visiting uncreated talk pages
The JavaScript console is showing a TypeError when visiting uncreated talk pages. Steps to reproduce: 1) Visit this page (assuming it hasn't been created yet). 2) I think you might need DiscussionTools enabled. 3) My skin is vector 2010. The error is  – Novem Linguae  (talk) 06:07, 26 April 2023 (UTC)


 * Same here. This is quite annoying as I do RecentChanges patrolling and it gets in the way of my RedWarn buttons on talk pages. Seems to happen even with Discussion Tools off. Courtesy ping: @Evad37 Rusty4321  talk contributions 22:03, 13 October 2023 (UTC)
 * Perhaps Evad could implement a change so that it doesn't run on non-existent pages, or implement a check for when the page history is ?  Rusty4321  talk contributions 00:03, 14 October 2023 (UTC)

Installation error
"The document contains errors. Are you sure you want to publish?"

and

"Error: Expected a string and instead saw {."

appears when I try to create https://en.wikipedia.org/w/index.php?title=User:RudolfoMD/common.js&action=edit with just

in it.

I balked. Related to a gadget/preference safety setting, perhaps?

@Evad37, you don't seem to have replied to several comments here. Might want to so this doesn't seem to be unsupported/abandoned. Thought so 'till I saw a reply just above this month. RudolfoMD (talk) 22:31, 24 October 2023 (UTC)


 * I think Evad37 is inactive. Doesn't seem to edit very often.
 * I copy pasted the above code into the above page and was able to create it without any errors. I went ahead and undid my edit so that you have control over exactly when you want to make this edit.
 * I suspect you made a typo somewhere. Maybe try again? Can also undo my blanking to achieve the same thing. – Novem Linguae (talk) 07:00, 25 October 2023 (UTC)
 * Summary: Thanks. Installed.
 * There's a "Testing and development" preference,
 * "Show an alert when you encounter JavaScript errors."
 * Whether it's on or off doesn't seem to make a difference. Just tested, and I get the error either way.  But if I try to ADD the line to my common.js, I see something different - not an error at first, but a warning: "Warning: Label 'subst' on iusc statement." but still get the pop-up when I try to save - " The document contains errors. Are you sure you want to publish?"
 * (It looks like undoing the blanking would have done something immaterially different but not so. Baffling but immaterial; it's just a comment that changes.)
 * It's not a typo thing. Something else. Well, this thread is here for others to find if it crops up for folks other than me. It seems the warning can be ignored. Installed and tested - it works.
 * Thanks again. RudolfoMD (talk) 20:37, 25 October 2023 (UTC)

Inform users of old version?
Today I realized that my OneClickArchiver wasn't working properly, and discovered that you kindly took it over. When I changed my commons.js page from User:Technical 13's version to your version, it once again works well. There are almost 700 other users who still have the old version installed. Have you considered if there's a way to post a message on the user talk pages of the active users who still have the old version installed to let them know about your new version? Thanks! GoingBatty (talk) 18:06, 25 October 2023 (UTC)
 * User:Technical 13/Scripts/OneClickArchiver.js was blanked on 24 October 2023 following a discussion at Interface administrators' noticeboard. The old script is now a comment saying to use User:Evad37/OneClickArchiver.js instead. Johnuniq (talk) 22:24, 25 October 2023 (UTC)
 * If there's a consensus for it, for example because lots of people are getting confused, then yeah it might be worth doing a WP:MMS to everyone. Perhaps we can centralize discussion about that over at Interface administrators' noticeboard? – Novem Linguae (talk) 02:27, 26 October 2023 (UTC)

OneClickRestorer
While you're at it, you could gift us a OneClickRestorer.

Many editors just undo the edit on the talk page side and forget about the archive page side, ultimately resulting in two versions of the thread in the archive.

If it's too late to restore-by-undo, it has to be done manually using copy-and-paste. This process is both cumbersome and error-prone, requiring a pretty high level of technical ability and precise attention to detail. Some editors overestimate their ability and botch the job. So someone else has to clean up after them, or the job just remains botched; neither a good thing.

Probably ~80% of this could be copied from OneClickArchiver. &#8213; Mandruss  &#9742;  00:55, 26 October 2023 (UTC)

Don't know if you saw this; probably the wrong place for it. &#8213; Mandruss  &#9742;  21:15, 27 October 2023 (UTC)

Problem with number width specifier in archive parameter
As I discussed [//en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&oldid=1184206609#c-Isaacl-20231109002100-SandyGeorgia-20231108235700 at the technical village pump]: the regular expression currently used by the scrpit to pick out the archive parameter from an archiving bot template won't handle a case like Wikipedia talk:Featured article candidates/archive%(counter)2d, as the 2 won't match. (It's part of a width specifier, as somewhat documented at .) In order for the script to reliably archive to the same page as the bot, the regular expression would have to be modified to detect the width specifier, and then the script would have to use it to format the counter number. isaacl (talk) 22:36, 9 November 2023 (UTC)

Feature request: display at Village Pumps
In Wikipedia namespace, so doesn't normally display here. I suggest hard coding in an exception so that it displays. – Novem Linguae (talk) 09:00, 23 January 2024 (UTC)

Bug report: one click archiving on subpages should not default to the main page archive
Use case: one click archiving anything on User talk:Enterprisey/script-installer gets placed in User talk:Enterprisey/Archive 1, which is not where these should go. These should instead go to User talk:Enterprisey/script-installer/Archive 1. I do not want to place a bot template because I want to continue manually archiving so incomplete bug reports stay on the page. – Novem Linguae (talk) 18:05, 7 May 2024 (UTC)

Remove clear template when archiving
I am requesting to remove clear above a discussion when archiving. Thanks. Qwerty284651 (talk) 00:40, 4 July 2024 (UTC)


 * This user script hasn't been updated by the author since 2018 and hasn't been updated by intadmins since 2020. You may have better luck leaving your feature request on the talk page of one of the forks: One click archiving – Novem Linguae (talk) 14:45, 4 July 2024 (UTC)
 * Thanks. Qwerty284651 (talk) 14:50, 4 July 2024 (UTC)