Eisspeedway

User talk:Elli/OneClickArchiver

Skins tested: vector (2010) and vector-2022.

Possible fix: Check for Category:Non-talk pages that are automatically signed. If present, display the "Archive" link on that page. –Novem Linguae (talk) 05:50, 10 June 2024 (UTC)[reply]

@Novem Linguae: very late reply here, but... this script already does that. The reason it doesn't show up is because that page is also in Category:Pages that should not be manually archived, a category that exists specifically to disable this script. Why is it there? I dunno. Elli (talk | contribs) 02:52, 24 August 2024 (UTC)[reply]
Thanks. Just now I deleted that category from the page. Let's see if anyone objects. –Novem Linguae (talk) 03:27, 24 August 2024 (UTC)[reply]
Yes, I object. VPT is one of those pages where we leave archiving for the bot. Using OCA can sometimes mean that the user of OCA is wilfully suppressing all further discussion, but at VPT situations sometimes arise where the original reason for raising a thread no longer exists but others may have suggestions on how the problem can be avoided in future. See for example WP:VPT#Can't save edit due to blacklisted link, but edit doesn't contain blacklisted link - the edit has been saved but further advice was offered just four days ago. --Redrose64 🌹 (talk) 07:23, 24 August 2024 (UTC)[reply]

Archive number

I may be a fool or blind, but for me this script only archives to /talkpage/Archive 1 even if there are later number archives available. Is there a way to change that which i'm just not seeing? Happy days, ~ LindsayHello 15:25, 15 June 2024 (UTC)[reply]

@LindsayH: is there an example of a page where this is an issue? Elli (talk | contribs) 21:15, 15 June 2024 (UTC)[reply]
Hi Elli. Well, yes. I stopped using Evad37's archiver after i had to manually redo all the archiving i did at talk:Dalida; so, i have tried again, with yours, at that page, and it archives to Talk:Dalida/Archive 1, although Talk:Dalida/Archive 2 exists. Also, which is what prompted me here yesterday, a test action i did at user_talk:LindsayH went to /Archive 1 although archives up to Archive 8 exist. If i'm not being clear, please ask. Happy days, ~ LindsayHello 07:52, 16 June 2024 (UTC)[reply]
I set auto-archive at Talk:Fortnite Battle Royale and then advanced the counter, OCA worked just fine with /Archive 2 (OCA created the page and archived the correct section and page. Special:Diff/1229260901) - FlightTime (open channel) 13:08, 16 June 2024 (UTC)[reply]
FlightTime ~ so i'm misunderstanding how a one click archiver works? My assumption was that you can click to archive finished sections on a talk page; that's why i thought i could use it on Talk:Dalida and my usertalk. Am i wrong, the page has to be set up to auto-archive for the one step script to work? That seems...counter-intuitive, no? Happy days, ~ LindsayHello 14:17, 16 June 2024 (UTC)[reply]
@LindsayH: You have to have a archiving . If not User:MiszaBot/config then {{Archive basics}}, something like these scripts need to be set or OCA will not work. - FlightTime (open channel) 16:05, 16 June 2024 (UTC)[reply]
Scripts that descend from Technical13's version use the configuration for MiszaBot (now being processed by lowercase sigmabot III), or the {{Archive basics}} template, which has the two configuration values needed by the script (see User:Technical 13/Scripts/OneClickArchiver § Archive page). In the case where there is no configured bot, the script still needs to be told what archive page to use, as the archiving naming conventions can differ from page to page. isaacl (talk) 15:10, 16 June 2024 (UTC)[reply]
Thank you both; i guess i did misunderstand ~ i don't recall ever seeing that information when i first used either Technical13's or Evad37's, so now i think i've got it. Cheers! Happy days, ~ LindsayHello 06:37, 17 June 2024 (UTC)[reply]

Bug reports for Evad37's script

I was wondering: which of the bugs reported at User talk:Evad37/OneClickArchiver.js have been fixed in this version?

Perhaps reporters of bugs could be advised to use User:Elli/OneClickArchiver. —⁠andrybak (talk) 21:08, 15 June 2024 (UTC)[reply]

@Andrybak: I'll get to working on these soon :) thanks for collecting them. Elli (talk | contribs) 21:17, 15 June 2024 (UTC)[reply]

Wikispecies

I've just tried to use this script on Wikispecies (where mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/archiver.js&action=raw&ctype=text/javascript'); used to work).

I get an error:

Unable to find |headerlevel=
Default value: 2

Can anyone assist, please? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 18:28, 25 July 2024 (UTC)[reply]

@Pigsonthewing: What page were you working on? - FlightTime (open channel) 18:45, 25 July 2024 (UTC)[reply]
@FlightTime: species:Wikispecies:Village Pump. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 20:34, 25 July 2024 (UTC)[reply]
@Pigsonthewing: I loaded my call mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:FlightTime/OneClickArchiver.js&action=raw&ctype=text/javascript' ); the archive links for sections showed up, but I wasn't sure what to archive. Try it it might work. Cheers, - FlightTime (open channel) 21:41, 25 July 2024 (UTC)[reply]
@FlightTime: Thank you, but when I do that, the error persists. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:04, 26 July 2024 (UTC)[reply]

Increase "archive" font size

Archive link is too small. Increase the font size by a factor of 2 or 3. Line 317, I presume:

$( 'body' ).prepend( '<div class="arcProg" style="font-weight: bold; box-shadow: 7px 7px 5px #000000; font-size: 0.9em; line-height: 1.5em; z-index: 501; opacity: 1; position: fixed; width: 50%; left: 25%; top: 30%; background: #F7F7F7; border: #222222 ridge 1px; padding: 20px;"></div>' );

, namely box-shadow: 7px 7px 5px to be increased to 14px 14px 10px or 21px 21px 20px. Qwerty284651 (talk) 00:36, 13 August 2024 (UTC)[reply]

Completely agree, way too small. Thank you @Qwerty284651:. - FlightTime (open channel) 00:41, 13 August 2024 (UTC)[reply]
See below:  Done Elli (talk | contribs) 18:41, 23 August 2024 (UTC)[reply]

Bug: archived section to "Archive 1" when "Archive 2" and "Archive 3" both exist

I've just tried this on my user talk page. I have pages up to Archive 3, but the archived section was added to Archive 1. I have no bots or other settings templates on my talk page. Rjjiii (talk) 07:25, 16 August 2024 (UTC)[reply]

The FlightTime script had the same issue.[1] The OCA script correctly finds the highest archive.[2] I had thought it may be that the scripts relied on a bot config (which is absent on my talk page), but I sneezed while reading H:CS1 discussions on my phone and accidentally archived something to "Archive 1".[3] The OCA script again correctly sees "Archive 95" as the highest and correct target. Changing themes didn't affect "Archive N" choice. On pages like Talk:Roswell incident that use "User:MiszaBot/config" it seems to choose the correct archive. On pages like Help talk:Citation Style 1 that use "User:ClueBot III/ArchiveThis" the "one click" scripts always choose "Archive 1". Adding {{Archive basics}} seems to be the thing I was meant to do, and works.[4] I see links to it on some talk pages now, but don't see it explained on the script pages or on Wikipedia:One click archiving. So do these scripts require some type of config written on the talk page? And will they ignore ClueBot's config? Why can't they treat "numberstart" like "counter"? This should probably be explained in documentation somewhere along the user's path to install one of these. Maybe notes from User:Equazcion/OneClickArchiver can be copied to the documentation for the new scripts? Also, pings to FlightTime, andrybak, and Elli. Rjjiii (talk) 01:54, 23 August 2024 (UTC)[reply]
Rjjiii, thank you for the ping. Here you go: User:Andrybak/Scripts/Archiver#Destination page calculation. If anything isn't clear, feel free to reach out on the script's talk page. —⁠andrybak (talk) 09:26, 23 August 2024 (UTC)[reply]
That's fantastic, I didn't even realize it could parse slashes. Thanks! Rjjiii (talk) 13:48, 23 August 2024 (UTC)[reply]
There are pages which use slashes, but I don't recommend doing it on new pages. I suggest using the most popular format – it tends to have better support from templates and bots, it's easier to investigate in case of issues, etc. —⁠andrybak (talk) 14:02, 23 August 2024 (UTC)[reply]
Note: "numberstart" does not work like "counter"; see User talk:ClueBot Commons/Archives/2024/August#How does "numberstart" work?. Rjjiii (talk) 16:22, 23 August 2024 (UTC)[reply]

Interface-protected edit request on 21 August 2024

The "Archive" button is way too small. Increase the font size by a factor of 3 to make the archive link easier to see. Line 317 in the code:

from box-shadow: 7px 7px 5px

$( 'body' ).prepend( '<div class="arcProg" style="font-weight: bold; box-shadow: 7px 7px 5px #000000; font-size: 0.9em; line-height: 1.5em; z-index: 501; opacity: 1; position: fixed; width: 50%; left: 25%; top: 30%; background: #F7F7F7; border: #222222 ridge 1px; padding: 20px;"></div>' );

to box-shadow: 21px 21px 15px

$( 'body' ).prepend( '<div class="arcProg" style="font-weight: bold; box-shadow: 21px 21px 15px #000000; font-size: 0.9em; line-height: 1.5em; z-index: 501; opacity: 1; position: fixed; width: 50%; left: 25%; top: 30%; background: #F7F7F7; border: #222222 ridge 1px; padding: 20px;"></div>' );

See discussion. Qwerty284651 (talk) 22:17, 21 August 2024 (UTC)[reply]

Fixed my request. Qwerty284651 (talk) 12:30, 22 August 2024 (UTC)[reply]
 Not done (as to the immediate interface-admin edit request), of course @Elli: may implement your suggestion to their script if they would like to. — xaosflux Talk 22:49, 22 August 2024 (UTC)[reply]
I'll take a look and probably implement it later today or tomorrow. Sorry for not seeing the comments here much; if there's something important pinging me or commenting on my usertalk will get my attention. Elli (talk | contribs) 23:53, 22 August 2024 (UTC)[reply]
Thanks, @Elli. I'll keep in mind to ping you next time. Qwerty284651 (talk) 15:52, 23 August 2024 (UTC)[reply]
 Done, though not with the code you provided. Elli (talk | contribs) 18:41, 23 August 2024 (UTC)[reply]
Sorry to rain on the parade here, but now the archive button is in my opinion too big. And also bigger than similar buttons placed by other user scripts such as DiscussionCloser. Any interest in reverting this change? –Novem Linguae (talk) 22:35, 23 August 2024 (UTC)[reply]
@Novem Linguae: Hm, yeah, I'll do that. But I'll add an option for it. Elli (talk | contribs) 23:03, 23 August 2024 (UTC)[reply]
@Qwerty284651: as I've reverted the above, but made it customizable -- you can add something like window.OCALinkSize = 0.9; to your common.js (the default size is 0.6). Elli (talk | contribs) 23:10, 23 August 2024 (UTC)[reply]
Updated the doc page with window.OCALinkSize = 0.9;. Qwerty284651 (talk) 23:52, 23 August 2024 (UTC)[reply]

Interface-protected edit request on 23 August 2024

Remove the {{clear}} template the archiver adds before each topic/discussion when archiving to an archive subpage in line 357 from

sectionContent = '\n\n{{Clear}}\n' + sectionContent;

to

sectionContent = '\n\n' + sectionContent;

Pinging @Elli: just in case. Qwerty284651 (talk) 19:25, 23 August 2024 (UTC) Qwerty284651 (talk) 19:25, 23 August 2024 (UTC)[reply]

I don't really have a problem with doing that, but why? Izno (talk) 19:44, 23 August 2024 (UTC)[reply]
This is the exact reason I made my fork, I wanted to remove the {{clear}} call, but after doing so I found a couple instances that the next archived section didn't post right. Sorry I can't remember exactly what happened and don't have a diff, but I ended up putting the clear call back in. - FlightTime (open channel) 19:47, 23 August 2024 (UTC)[reply]
So, no dice then. Great. Qwerty284651 (talk) 19:49, 23 August 2024 (UTC)[reply]
@Izno, it adds too much whitespace before each archived topic. I had requested this change to reduce whitespace by a couple of lines. That's all. Qwerty284651 (talk) 19:52, 23 August 2024 (UTC)[reply]
The reason it's there (for read mode; I can't speak to FlightTime's commentary) is to prevent floated content from appearing in sections after it.
I do think it might make sense to change the current template use to the literal <br style="clear: both"/>, since I don't see a strong motivation to using the template directly. Izno (talk) 19:57, 23 August 2024 (UTC)[reply]
@Izno, FlightTime, and Qwerty284651: Could do that if there would be a benefit? I do think keeping the clear functionality makes more sense than getting rid of it though; a bit more whitespace on archive pages is worth making sure stuff does not bleed between discussions. Elli (talk | contribs) 20:06, 23 August 2024 (UTC)[reply]
@Qwerty284651: I can remove it off my fork so you could test it, if you want, let me know. - FlightTime (open channel) 20:12, 23 August 2024 (UTC)[reply]
@FlightTime:, I wouldn't know how to test it, because I don't know any JS. I wish I did, but I don't. If clear is there to prevent other issues from occurring, then so be it. It was worth the request. Qwerty284651 (talk) 20:36, 23 August 2024 (UTC)[reply]
This would also create white space? Rjjiii (talk) 02:10, 20 October 2024 (UTC)[reply]
@Qwerty284651 I'm trying one-click archiving without {{clear}} right now. Could you point me to a page that you'd like archived, so I can see if this makes any kind of improvement. Rjjiii (talk) 04:04, 11 November 2024 (UTC)[reply]

Worked for archiving, but can't retrieve archive.

It's giving an error when I click on Archive. Allthemilescombined1 (talk) 02:02, 13 October 2024 (UTC)[reply]

 Fixed see Wikipedia:Teahouse#I_posted_on_the_talk_page_for_this_Archiving_script_that_the_script_worked_for_archiving,_but_I_can't_retrieve_the_archive. Polygnotus (talk) 11:12, 13 October 2024 (UTC)[reply]

Any chance we can toggle which spaces this will function in?

I just accidentally archived a post on someone else’s talk page (d’oh) and I wondered if it’s possible to disable this gadget in userspace, or even better, disabling it on all userspace pages except one’s own page? — HTGS (talk) 02:15, 22 October 2024 (UTC)[reply]

notifications sent when archiving

Someone archived a talk page that @-mentioned me, and I received a notification about it. For sure, I should be notified when the @-mention is done. But years later, when the page is archived, I shoudldn't be notified. Why does the archiver raise such notifications? They're unwanted, unwarranted, and confusing. -- 23:06, 5 November 2024 (UTC) mikeblas (talk) 23:06, 5 November 2024 (UTC)[reply]

@Mikeblas: Which page, which archive edit? But at a rough guess, I'd say that the edit doesn't have the b marker denoting a bot edit. --Redrose64 🌹 (talk) 23:39, 5 November 2024 (UTC)[reply]
From this template talk page archive: Template talk:Infobox India university ranking/Archive 1. Must've been this edit, since it's the one that pings me. Not sure what you mean by "b marker", tho. -- mikeblas (talk) 00:17, 6 November 2024 (UTC)[reply]
When you click on the little icon, it produces a list of the 25 most recent notifications. If you locate the entry concerned, you can right-click on it and select "Copy Link" or similar. Then you can be certain of stating which edit caused the notification.
If you go to your watchlist, you may find that some edits have a little b between the "hist" link and the page name. This is explained further up: on the right-hand side of the "Watchlist options" box is a smaller box headed "Legend (help):", the rest of the box includes a row reading "b Bot edit". Anyway, that's not the case here.
What possibly happened is that threads created in archive pages by OneClickArchiver are simply that - new threads. OneClickArchiver was used by Muhandes (talk · contribs), whose signature is the last item in the thread, therefore, the notifications system sent a notification to eveybody else named in the thread - i.e. you. --Redrose64 🌹 (talk) 18:13, 6 November 2024 (UTC)[reply]
Here's the link. I contacted Muhandes, and they said this isn't something they can control. But this has never happened to me with any comment on any other archive page, ever, in more than 20 years. It tricked me into responding to them on the archive page. This page is not on my watchlist -- I've got only eight watched pages, and none show up on my watchlist presently. So I still don't udnerstand what might have happened, or why I'd be pinged for a two-year-old mention. -- mikeblas (talk) 18:55, 6 November 2024 (UTC)[reply]