A desktop browser with x402 built in: when a page asks for payment, it pays in stablecoins and shows the content.

9 downloads

dbbasic-browser/apps/browser/scripts/copy-reader-assets.mjs
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-browser.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-browser.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-browser.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 toolbar: Back and Forward are greyed out when there's nowhere to go cc08c7a 1 week, 2 days ago History
copy-reader-assets.mjs · 726 bytes · 13 lines
1#!/usr/bin/env node
2/** Copy what the AI Reader injects into pages: Mozilla's Readability (Apache-2.0) and our extractor. */
3import { copyFileSync, mkdirSync } from "node:fs";
4import { createRequire } from "node:module";
5import { dirname, join } from "node:path";
6import { fileURLToPath } from "node:url";
7
8const root = join(dirname(fileURLToPath(import.meta.url)), "..");
9const dist = join(root, "dist");
10mkdirSync(dist, { recursive: true });
11copyFileSync(createRequire(import.meta.url).resolve("@mozilla/readability/Readability.js"), join(dist, "Readability.js"));
12copyFileSync(join(root, "src", "reader-extractor.js"), join(dist, "reader-extractor.js"));
13console.log("reader assets: Readability.js + reader-extractor.js");