Skip to content

Instantly share code, notes, and snippets.

View examosa's full-sized avatar

Jules Amonith examosa

View GitHub Profile
@examosa
examosa / https-loader.mjs
Created January 13, 2026 19:28
Node.js HTTPS ESM Loader
/**
* Adds support for importing ES modules from the web.
*/
export function load(url, _context, nextLoad) {
if (!url.startsWith("https://")) {
return nextLoad(url);
}
return fetch(url)
.then((res) => res.text())
@examosa
examosa / fetch-instances.js
Last active January 8, 2026 15:42
Userscripts
const gh = (path) => new URL(path, 'https://nobsdelivr.private.coffee/gh');
const getJson = (url) =>
fetch(url, { headers: { Accept: "application/json" } })
.then((response) => response.json())
.catch((error) => {
console.error(error);
});
async function fetchInstances() {