The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Archive for September 2nd, 2025

Revisited: Bookmarklet to save a page both in the WayBack machine and Archive.is (ending on the latter to solve a reCAPTCHA)

Posted by jpluimers on 2025/09/02

Quite a I while ago, I wrote Bookmarklet to save a page both in the WayBack machine and Archive.is (ending on the latter to solve a reCAPTCHA).

The bookmarklet has been very stable, but as of a week or so I need to press the Enter key for it to actually archive.

The reason is that Archive.is, also known as Archive Today, introduced a new URL parameter for auto-starting the archive of an URL.

The old one looked like this: https://archive.is/submit/?run=1&url=https%3A%2F%2Fwww.youtube.com%2Ffeed%2Fhistory%2Fcomment_history

The new one like this: https://archive.is/submit/?anyway=1&url=https%3A%2F%2Fwww.youtube.com%2Ffeed%2Fhistory%2Fcomment_history&submitid=auT7eAltRDxCOGSjdoRMhu3H9d91VEFlvjVztfvNU8XO0ccAhji5DvTyqQew6rfm

The new submitid URL 40 character base64 parameter is being checked in the back end. One way of obtaining one by loading https://archive.is/ then wait for it’s completion and grab it from there.

The alternative is to wait for the submit page to fully load, then find the “save” button via its HTML <input type="submit" value="save"> and press it.

So that’s on the todo list for the updated Bookmarklet of the above blog post.

For now, I just have to press the Enter key for each archived page, I wonder how long that will last (:

Oh: to get the “do you want to save the page again” URL you will have to know the canonical URL first, as that ID is in the again URL, see the bold bits here:

  1. https://archive.is/c6d09
  2. https://archive.is/c6d09/again?url=https://www.youtube.com/feed/history/comment_history

--jeroen

Posted in archive.is / archive.today, Bookmarklet, Development, Internet, Power User, Software Development, Web Browsers, Web Development | Leave a Comment »

RunElevated.bat: Run an Elevated command on Windows

Posted by jpluimers on 2025/09/02

For a long time, I have ran with the runelevated.bat in [Wayback/Archive] Run an Elevated command using that: “net file” returns errorlevel 1 when not UAC, and “PowerShell Start-Process” has a “-Verb RunAs“; see the answers at http://stackoverflow.com/questions/7044985/how-can-i-auto-elevate-my-batch-file-so-that-it-requests-from-uac-admin-rights for more information

By now, I would just prepend this oneliner into each batch-file needing elevation:

@pushd "%~dp0" & fltmc | find "." && (powershell start '"%~f0"' ' %*' -verb runas 2>nul && popd && exit /b)

Both the initial batch file and one-liner are from [Wayback/Archive] windows – How can I auto-elevate my batch file, so that it requests from UAC administrator rights if required? – Stack Overflow (thanks [Wayback/Archive] Ir Relevant,  [Wayback/Archive] ceztko, [Wayback/Archive] Jamesfo, and [Wayback/Archive] PDixon724)

Note that the net file trick below should actually be repeated twice. This is explained in [Wayback/Archive] windows – Batch script: how to check for admin rights – Stack Overflow (thanks [Wayback/Archive] zumalifeguard), but wait: there is even a better solution!

The fltmc trick above works much better than the net file trick and is available from Windows XP and up, see [Wayback/Archive] windows – Batch script: how to check for admin rights – Stack Overflow (thanks [Wayback/Archive] npocmaka).

Oh: on systems where I have full installation control, I always install gsudo, see gsudo (sudo for windows).

–jeroen

Read the rest of this entry »

Posted in .NET, Batch-Files, CommandLine, Development, PowerShell, PowerShell, Scripting, Software Development | Leave a Comment »