> (Page with the Instagram post's embedded view in it)
```
+## archive
+
+Redirects a webpage to the corresponding [archive.ph](https://archive.ph)
+capture. Useful to bypass news article paywalls.
+
+```
+https://x.y.workers.dev?https://example.com
+> (HTTP redirect to https://archive.ph/https://example.com)
+```
+
<h1 align="center">Command Line Utilities</h1>
## pwned
--- /dev/null
+export default {
+ async fetch(request) {
+ const url = new URL(request.url);
+ const queryString = decodeURIComponent(url.search.substring(1));
+
+ return Response.redirect(`https://archive.ph/${queryString}`);
+ }
+}
--- /dev/null
+{
+ "name": "archive",
+ "version": "0.2.0",
+ "description": "Web utility that automatically sends a webpage to archive.ph.",
+ "license": "ISC",
+ "author": "Ardis Lu",
+ "private": true,
+ "scripts": {
+ "dev": "wrangler dev",
+ "publish": "wrangler publish"
+ },
+ "dependencies": {
+ "html-entities": "^2.3.3"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/ardislu/cloudflare-workers.git"
+ }
+}
--- /dev/null
+name = 'archive'
+main = 'index.js'
+compatibility_date = '2023-01-27'
+route = { pattern = 'archive.example.com', custom_domain = true }
"hash",
"style",
"unroll",
- "buttcoin"
+ "buttcoin",
+ "archive"
]
}