Skip to content

Instantly share code, notes, and snippets.

@intellectronica
Last active December 27, 2025 10:36
Show Gist options
  • Select an option

  • Save intellectronica/b317f60cae3cd8066f86bd0c999bc235 to your computer and use it in GitHub Desktop.

Select an option

Save intellectronica/b317f60cae3cd8066f86bd0c999bc235 to your computer and use it in GitHub Desktop.
MonkeyScript: Open Archive Copy

Open Archive Copy

A userscript that opens the current page in archive.ph with a single click or keyboard shortcut.

Handy for finding an archived copy of a paywalled or blocked web page.

Installation

  1. Install a userscript manager extension such as Tampermonkey
  2. Install open-archive-copy.js

Usage

  • Use the menu command "Open Archive Copy" from the menu
  • Or press Ctrl+Shift+A

Want to learn more about customising your browser with agentic coding? Join this workshop: Customise Your Browser with Agentic Coding


🫶 Eleanor (@intellectronica)

// ==UserScript==
// @name Open Archive Copy
// @namespace https://intellectronica.net/
// @version 1.0
// @description Open current page in archive.ph
// @match *://*/*
// @grant GM_registerMenuCommand
// @grant GM_openInTab
// ==/UserScript==
(function() {
'use strict';
function openArchive() {
GM_openInTab('https://archive.ph/' + window.location.href, { active: true });
}
// Menu command
GM_registerMenuCommand('Open Archive Copy', openArchive);
// Keyboard shortcut: Ctrl+Shift+A
document.addEventListener('keydown', (e) => {
if (e.ctrlKey && e.shiftKey && e.key === 'A') {
e.preventDefault();
openArchive();
}
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment