User talk:Technical 13/Scripts/OneClickArchiver
This is a subpage of Technical 13's talk page, where you can send them messages and comments. |
|
|
|
Multi-click archiver?
Just a suggestion but if possible maybe the ability to click several sections at once? Rather than individual edits for each thread, which can fill up watchlists. –xenotalk 23:07, 18 May 2015 (UTC)
- xeno, it's already on the todo list. I'm actually quite busy with school and RL right now, but hopefully I will have a little more time to work on that later. I don't know if you noticed, but the new feature I added so that it can respect maxarchive size and update the counter actually runs as two separate edits. Once I have time to rework it and merge those into a single edit, then I'll be in a much better place to allow archiving multiple sections in one shot. I also need to figure out how that will work in regards to max size restrictions, should it try to put as many sections in the current archive as possible and then start the new one or go the easier root of just putting everything in the current archive and increasing the index? Should it check if the current archival will push it over the limit and if so increment before archiving? Currently it puts it in the current and then increments, but I'm worried that doing that for multiple sections may result in pages that are way too big for a single archive. Anyways, it is on the todo list, but I have a lot to think about as to what and how and no time at the moment. Thanks for reminding me about it though and letting me know it is still a desired feature. :) —
{{U|Technical 13}} (e • t • c)
23:54, 18 May 2015 (UTC)
Error
Hi @Technical 13:. I installed your script at Meta and tried to archive m:RFH, but it seems that it does not respect MiszaBot's config template, as it did archived the thread at m:Meta:Requests for help from a sysop or bureaucrat/Archive 1 (now deleted). Maybe I did something wrong? Best regards. MarcoAurelio (talk) 17:59, 8 June 2015 (UTC)
- MarcoAurelio, that was because you tried to use it on a page that uses dated archives instead of indexed archives and 1CA isn't set up to be able to handle dated archives yet. It may be something I add in the future, if I continue editing at all. —
{{U|Technical 13}} (e • t • c)
16:09, 15 June 2015 (UTC)
- Thank you. I didn't realise it wasn't set up to deal with dated archives yet. Hope that you continue editting, your work is appreciated. Best regards. MarcoAurelio (talk) 22:14, 15 June 2015 (UTC)
Hello Technical 13! Is there a way to get OneClickArchiver to work for individual entries on WP:RFPP? It even seems to work for the individual entries at Wikipedia:Administrators' noticeboard/Requests for closure. But, for some reason, no dice at RFPP... Thanks in advance. --IJBall (contribs • talk) 20:31, 18 June 2015 (UTC)
- You'd have to use {{Archive basics}} and set
|headerlevel=3
(not very well documented it seems). I'll also note the RFPP is on a rolling archive, and I don't know what effect manually archiving sections would have on the way the special archiving bot for that page will react to it; please check with that bot operator before using it there. If that operator says it's a bad idea, you may want to add the page to Category:Pages that should not be manually archived. —{{U|Technical 13}} (e • t • c)
02:53, 19 June 2015 (UTC)
- Thanks for the response. Bots seem to be working again, so this is a less pressing issue again. I may follow up on this later with the bot operator if this question continues to remain of interest... --IJBall (contribs • talk) 19:25, 19 June 2015 (UTC)
Not true.
"Clicking the archive link on pages without a MiszaBot configuration or (with both required parameters) will not successfully perform an archive." Well, I tried it at Wikipedia_talk:Bare_URLs, and it did something, but it's messed up. But I'm not changing the documentation because this isn't a good thing. Taking a break for now. Don't know what to try next.--Elvey(t•c) 23:20, 15 January 2016 (UTC)
Move it to meta?
Hi @Technical 13:. Meh to the ban! Would you consider moving this baby to Meta (or MW) so it is a better global script? There are so many places that can do with the value of this script (and your valuable scripting) and with it being updated rather than tucked away here at enWP. — billinghurst sDrewth 01:57, 27 April 2016 (UTC)
OneClickArchiver occasionally mangles a link if the result is to long to fit in at edit summary
As seen here:[1] --Guy Macon (talk) 21:04, 18 July 2016 (UTC)
Won't load at WP:ANI
1CA never loads when I go to ANI. It always says it's unable to find |headerlevel=
. Is there something wrong with the code in my User:Linguist111/common.js? Linguist If you reply to me here, please add {{ping|Linguist111}} to the start of your message 16:53, 13 January 2017 (UTC)
- It hasn't been working for me anywhere for several months now. I see that I am not alone. -- Kautilya3 (talk) 20:11, 13 January 2017 (UTC)
It archived the wrong discussion.
I've used this numerous times in the past without issue, but today, I tried to archive a small discussion on ANI, but instead, I archived a large (and ongoing) discussion right below it. I thought maybe that I did a misclick, but the edit summary shows the heading of the discussion that I tried to archive, rather than what it actually did. Jauerbackdude?/dude. 19:17, 25 April 2017 (UTC)
- My guess is that this can happen when someone's created or deleted another thread somewhere else on the same page sometime between when you retrieved the page and when you clicked <archive>. I think it's happened to me once or twice (out of thousands of uses). EEng 19:58, 25 April 2017 (UTC)
- I'm thinking this is another example: [2] EEng 03:54, 28 December 2017 (UTC)
Surprising error
I'm not sure if I did something wrong (I don't user OneClickArchiver much) or if this is a bug, but when I tried to archive some sections at Talk:List of bean-to-bar chocolate manufacturers it moved the comments to a user talk page, such as User talk:List of bean-to-bar chocolate manufacturers/Archive 1. Just thought someone might want to look into it. Deli nk (talk) 22:40, 21 July 2017 (UTC)
- 1-Click is the greatest thing since sliced bread, but it sure has some weirdo bugs. EEng 03:16, 22 July 2017 (UTC)
Suggested code change
There is a section that is messing up the edit summaries due to the length of the edit summary generated. I suggest that this:
new mw.Api().postWithToken( 'edit', {
action: 'edit',
section: sectionNumber,
pageid: pageid,
text: '',
summary: '[[User:Technical 13/1CA|OneClickArchiver]] archived [[Special:Diff/' + archived.edit.newrevid + '|' + sectionName + ']] to [[' + archiveName + '#' + sectionName + '|' + archiveName + ']]'
...be changed to this:
new mw.Api().postWithToken( 'edit', {
action: 'edit',
section: sectionNumber,
pageid: pageid,
text: '',
summary: '[[User:Technical 13/1CA|OneClickArchiver]] archived [[Special:Diff/' + archived.edit.newrevid + '|' + sectionName + ']]'
This will shorten it so that all the links work. Additionally, the link at the Special:Diff shows you where it was archived, so the second part is essentially duplication. — nihlus kryik (talk) 17:56, 2 September 2017 (UTC)
![]() | This edit request to User:Technical 13/Scripts/OneClickArchiver.js has been answered. Set the |answered= parameter to no to reactivate your request. |
Formalizing request since there has been no objection in the last three weeks. Thanks. — nihlus kryik (talk) 00:35, 23 September 2017 (UTC)
- @Nihlus Kryik: please confirm the line number in the code? — Martin (MSGJ · talk) 06:24, 25 September 2017 (UTC)
- @MSGJ: Begins at 342 and ends on 347. — nihlus kryik (talk) 06:28, 25 September 2017 (UTC)
Done Thanks that is very helpful. I hope I've deployed your fix correctly — Martin (MSGJ · talk) 06:32, 25 September 2017 (UTC)
- @MSGJ: Just tested it out. Appears to work fine. Thanks! — nihlus kryik (talk) 06:37, 25 September 2017 (UTC)
![]() | This edit request to User:Technical 13/Scripts/OneClickArchiver.js has been answered. Set the |answered= parameter to no to reactivate your request. |
Can the above be reversed? With the increased edit summary length, I don't believe this is an issue any longer. Nihlus 10:28, 15 October 2018 (UTC)
Create an archive counter?
Sometimes I try see the following message when I try to archive sections: "No archive counter was detected on this page, so archiving was aborted. See User:Equazcion/OneClickArchiver for details." Is there a way to automatically create an archive counter? I'm not even sure I know how to do this manually... ---Another Believer (Talk) 15:11, 14 September 2017 (UTC)
- @Another Believer: It uses Miszabot's configuration when determining how to archive something. (See User:MiszaBot/config.) A page has to be configured before you can use the tool. You can also use
{{Archive basics}}
. — nihlus kryik (talk) 16:20, 14 September 2017 (UTC)- I'll take a look, thanks! ---Another Believer (Talk) 21:52, 14 September 2017 (UTC)
- @Nihlus Kryik: I am still trying to understand. Perhaps if I see how the code is added once, I can replicate in the future. Are you willing to demonstrate how this works at Talk:List of songs recorded by Sia Furler? ---Another Believer (Talk) 22:12, 14 September 2017 (UTC)
- @Another Believer: Added. — nihlus kryik (talk) 03:37, 15 September 2017 (UTC)
- @Nihlus Kryik: Much appreciated. I will review and bookmark for future reference. ---Another Believer (Talk) 03:40, 15 September 2017 (UTC)
- @Another Believer: Added. — nihlus kryik (talk) 03:37, 15 September 2017 (UTC)
Is OneClickArchiver no longer working? I haven't been able to use it for a few days, so I updated User:Another Believer/common.js (hopefully correctly), but still don't see the ability to click on links to archive talk page discussions. ---Another Believer (Talk) 22:18, 11 October 2017 (UTC)
- @Nihlus: I'm sorry to bother again, but might you be able to check real quick if OneClickArchiver is "installed" correctly at User:Another Believer/common.js? I'm still not seeing the "archive" links on any talk pages. ---Another Believer (Talk) 01:48, 10 November 2017 (UTC)
- @Another Believer: It seems fine. Remember, the archive link will only show on pages that have archiving set up, like I did above. Nihlus 02:26, 10 November 2017 (UTC)
- @Nihlus: Yes, I am looking on pages I should be able to archive. Thanks for checking. ---Another Believer (Talk) 02:44, 10 November 2017 (UTC)
- @Another Believer: What pages are you looking at that don't have them? Nihlus 02:46, 10 November 2017 (UTC)
- @Nihlus:Well, for example, I just added a counter to Talk:Legality of cannabis by country. But I don't see links for archiving sections. ---Another Believer (Talk) 02:48, 10 November 2017 (UTC)
- @Another Believer: I see them. There might be something wrong with your portlet code, so I would try moving the importScript to the top of the page in your common.js file. Nihlus 02:56, 10 November 2017 (UTC)
- @Nihlus: Thanks for the suggestion. I just tried, but still don't see the archive links. I'll keep tinkering with the common.js page. ---Another Believer (Talk) 03:06, 10 November 2017 (UTC)
- @Another Believer: I see them. There might be something wrong with your portlet code, so I would try moving the importScript to the top of the page in your common.js file. Nihlus 02:56, 10 November 2017 (UTC)
- @Nihlus:Well, for example, I just added a counter to Talk:Legality of cannabis by country. But I don't see links for archiving sections. ---Another Believer (Talk) 02:48, 10 November 2017 (UTC)
- @Another Believer: What pages are you looking at that don't have them? Nihlus 02:46, 10 November 2017 (UTC)
- @Nihlus: Yes, I am looking on pages I should be able to archive. Thanks for checking. ---Another Believer (Talk) 02:44, 10 November 2017 (UTC)
- @Another Believer: It seems fine. Remember, the archive link will only show on pages that have archiving set up, like I did above. Nihlus 02:26, 10 November 2017 (UTC)
I am still unable to use this tool. If someone thinks they'd be able to help me, please ping me or post a note to my user talk page. Thanks! ---Another Believer (Talk) 02:03, 17 February 2018 (UTC)
Awesome
I just came across someone else using this tool, and dude it is great! Thanks!— TAnthonyTalk 15:58, 17 October 2017 (UTC)
- I'm about to give it a go as well. C. W. Gilmore (talk) 02:45, 11 November 2017 (UTC)
Archiving to wrong subpage
Hi, I tried archiving everything at Talk:Fergie (singer) today however instead of it going to Talk:Fergie (singer)/Archive 3 it was going to Talk:Fergie (singer)/Archive 1,
Is there any reason for this ?,
Thanks, –Davey2010 Merry Xmas / Happy New Year 16:54, 31 December 2017 (UTC)
I just archived a section of the Protests against Donald Trump talk page, and the section was sent to Archive 1 instead of Archive 4. I should also note, I still only see the ability to archive talk page sections once in a blue moon, for unknown reasons. ---Another Believer (Talk) 15:30, 26 July 2018 (UTC)
Counter increments every time?
I tried to use this script, but every time I click "Archive", it increments the archive counter by 1 and creates a new archive page to hold the item I'm archiving. e.g. There was one archive page for Talk:The Black Eyed Peas, which had only a single item. When I clicked "Archive", it created a new Archive_2 page for that single item (diff). Am I doing something wrong? I followed the configuration instructions--I added
{{subst:Iusc|User:Technical_13/Scripts/OneClickArchiver.js|User:Technical_13/Scripts/OneClickArchiver}}
...which expanded to:
importScript( 'User:Technical_13/Scripts/OneClickArchiver.js' ); // Backlink: [[User:Technical_13/Scripts/OneClickArchiver]]
(I manually moved the item back to Archive_1, and deleted the spruiously-created Archive_2 page.) Thanks! — Narsil (talk) 00:15, 14 June 2018 (UTC)
- Yeah, what's going on ? - FlightTime (open channel) 23:13, 20 June 2018 (UTC)
- Update: I've been using it recently and no issues so far. - FlightTime (open channel) 15:57, 26 July 2018 (UTC)
Archived to an unexpected place
See [3]. EEng 21:14, 19 July 2018 (UTC)
Does 1CA only work if your archives use the number format?
I still can't figure out how to get 1CA to archive to User talk:Mythdon/Archive B.—Mythdon (talk • contribs) 09:53, 24 October 2018 (UTC)
- Apparently. Is there a reason you want to make it harder to access your archives by using the alphabet. Just use the numbers. Everything is built around numbers.—CYBERPOWER (Trick or Treat) 13:16, 24 October 2018 (UTC)
- I suppose you're right.—Mythdon (talk • contribs) 04:28, 25 October 2018 (UTC)
Anyone else having trouble with 1CA?
I've cleared my cache, but the "Archive" button still won't show up, even for pages like WP:ANI.—Mythdon (talk • contribs) 07:01, 25 October 2018 (UTC)
- Same. Most of the time, archive links do not display for me, but now and then they do. I've asked so many people about this, but still don't know what I'm doing wrong. The tool is so useful, I wish it worked for me regularly. ---Another Believer (Talk) 13:12, 25 October 2018 (UTC)
- Thank you for the reassurance. I wasted so much time inflating my edit count trying to figure it out.—Mythdon (talk • contribs) 13:13, 25 October 2018 (UTC)
- Works for me.—CYBERPOWER (Trick or Treat) 23:26, 25 October 2018 (UTC)
- Links are showing up for me now. Don't know what was going on yesterday.—Mythdon (talk • contribs) 23:33, 25 October 2018 (UTC)
- Works for me.—CYBERPOWER (Trick or Treat) 23:26, 25 October 2018 (UTC)
- Thank you for the reassurance. I wasted so much time inflating my edit count trying to figure it out.—Mythdon (talk • contribs) 13:13, 25 October 2018 (UTC)
OneClickArchiver still active
I just saw OneClickArchiver archive pages over at Talk:Gravity (2013 film).
Please disable this functionality - the user is blocked but it appears that anyone can still invoke the bot to make edits.
This is highly problematic - who made the actual edit (over at the linked talk page) if this user is blocked??
(Plus, of course, that talk page is maintained by the regular autoarchival bot and the changes were completely unneccessary - just let the bot handle the page!) CapnZapp (talk) 08:59, 17 January 2019 (UTC)
- @CapnZapp: OneClickArchiver is a user script, meaning that it only makes edits at the direction of a user. In the case you mentioned, that specific archiving was done by FlightTime (talk · contribs). --DannyS712 (talk) 18:35, 17 January 2019 (UTC)
- @CapnZapp: I'm not blocked, it's a user script not a bot account and I made the edits, just for the record. Not sure what your concern is. I replied to your post on my talk page also. - FlightTime (open channel) 18:20, 18 January 2019 (UTC)
My basic error?
Anyone got any idea what I am doing wrong in this edit? I used 1CA to clear out a decade's worth of grotty caste stuff from the article talk page, it seems to have created the Archive (#1, because none previously existed) but I must be doing something wrong because I can't get the archive link to display on the talk page. - Sitush (talk) 05:52, 28 January 2019 (UTC)
- @Sitush: I don't think the template is meant to display the archives, only to configure them for the script. I'd suggest taking a look at {{Archives}}. Also, this user is blocked, so this may not be the best place to ask --DannyS712 (talk) 06:00, 28 January 2019 (UTC)
- Yeah, I realised Tech13 was ArbCom blocked, thanks, but assumed that the script was still being maintained by someone. Sorry about that. I'm hopeless with setting up archives but will take that advice and read up. - Sitush (talk) 06:08, 28 January 2019 (UTC)
- I've done this by copying an arrangement from my own talk page. Will see what happens in the long term. - Sitush (talk) 06:18, 28 January 2019 (UTC)
- @Sitush: Yeah, I guess we'll see. Feel free to reach out if you have any more questions. I would ask that this page be redirected to the current maintainer's page, but they said that
I cannot help with issues about archiving your own talk page. If you have read the documentation carefully and are still having problems, a prompt and friendly answer can usually be found by asking at the teahouse.
. --DannyS712 (talk) 06:20, 28 January 2019 (UTC)
- @Sitush: Yeah, I guess we'll see. Feel free to reach out if you have any more questions. I would ask that this page be redirected to the current maintainer's page, but they said that
Couple questions
Hi,
First, thank you for maintaining this nice semi-automated archiving script. For low-volume talk pages not needing fully automated archiving, it's great.
However, a couple questions:
- On my User talk:Dmehus/Archives/2004/March page, the link back to my user talk page is redlinked. So, I tried adding an "Archives" prefix, but that didn't seem to do it. Nevertheless, how do I get OneClickArchiver to correctly set the main user talk without having to add a prefix parameter each time?
- When I archived that page originally, it archived it to User talk:Dmehus/Archive 1 despite me having the correct Miszabot coding on the page. How can I avoid this in the future?
Many thanks,
--Doug Mehus T·C 23:36, 11 November 2019 (UTC)
{clear}
What explains the presence of the {clear} -- from the prior thread! -- at the top of this one-click diff? [4] EEng 21:29, 13 November 2019 (UTC)
User talk:Dmehus issue with OneClickArchiver
Can someone take a look at my user talkpage and see what I need to do to get OneClickArchiver to honour the MiszaBot settings and archive to applicable subpage of year/month when I manually archive something? That is, if the most recent timestamp for a given section is for November 2019, I'd like OneClickArchiver to move it to the applicable /Archives/2019/November subpage. Can't figure out what I'm doing wrong.
Thanks,
--Doug Mehus T·C 19:39, 28 January 2020 (UTC)