Jump to content

User talk:Evad37/OneClickArchiver.js

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

Errors/fork

[edit]

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. {{u|Sdkb}}talk 22:18, 15 November 2020 (UTC)[reply]

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:
For archiving helper scripts in particular, the page Wikipedia:One click archiving was overhauled recently. All the unmaintained scripts were moved into their own section. Some, but not all, were delisted from Wikipedia:User scripts/List. —⁠andrybak (talk) 20:43, 15 June 2024 (UTC)[reply]

Archived to wrong subpage

[edit]

@Evad37: Any idea what happened here: [1] [2]? Not sure if that was a bug in script, or the page. Suffusion of Yellow (talk) 18:14, 10 February 2021 (UTC)[reply]

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

Watchlisting

[edit]

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)[reply]

ClueBot III

[edit]

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! AXONOV (talk) 13:22, 28 May 2022 (UTC)[reply]

Incorrect archive target

[edit]

@Evad37, 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! ― Qwerfjkltalk 06:16, 12 July 2022 (UTC)[reply]

[edit]

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)[reply]

Always uses Archive 1 as archive target even though there are 2 or more than one archives

[edit]

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)[reply]

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, 2022—without 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)[reply]

How to get the counter to work in translations of the "/Archive"?

[edit]

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)[reply]

TypeError when visiting uncreated talk pages

[edit]

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 Uncaught TypeError: Cannot read properties of undefined (reading '0'), line 40.Novem Linguae (talk) 06:07, 26 April 2023 (UTC)[reply]

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)[reply]
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 undefined? Rusty4321 talk contributions 00:03, 14 October 2023 (UTC)[reply]

Installation error

[edit]

"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
{{subst:iusc|1=User:Evad37/OneClickArchiver.js}}

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)[reply]

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)[reply]
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)[reply]

Inform users of old version?

[edit]

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)[reply]

User:Technical 13/Scripts/OneClickArchiver.js was blanked on 24 October 2023 following a discussion at Wikipedia:Interface administrators' noticeboard#OneClickArchiver old version is creating a mess. The old script is now a comment saying to use User:Evad37/OneClickArchiver.js instead. Johnuniq (talk) 22:24, 25 October 2023 (UTC)[reply]
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 Wikipedia:Interface administrators' noticeboard#OneClickArchiver old version is creating a mess? –Novem Linguae (talk) 02:27, 26 October 2023 (UTC)[reply]

OneClickRestorer

[edit]

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. ―Mandruss  00:55, 26 October 2023 (UTC)[reply]

@Evad37: Don't know if you saw this; probably the wrong place for it. ―Mandruss  21:15, 27 October 2023 (UTC)[reply]

Problem with number width specifier in archive parameter

[edit]

As I discussed 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 |archive=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 User:MiszaBot/config § Variables.) 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)[reply]

Feature request: display at Village Pumps

[edit]

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)[reply]

Bug report: one click archiving on subpages should not default to the main page archive

[edit]

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)[reply]

Remove clear template when archiving

[edit]

I am requesting to remove {{clear}} above a discussion when archiving. Cite error: There are <ref> tags on this page without content in them (see the help page).Thanks. Qwerty284651 (talk) 00:40, 4 July 2024 (UTC)[reply]

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: Wikipedia:One click archiving#One click archiving (1CA)Novem Linguae (talk) 14:45, 4 July 2024 (UTC)[reply]
Thanks. Qwerty284651 (talk) 14:50, 4 July 2024 (UTC)[reply]