window.__origFetch = window.fetch; window.fetch = async function (input, init) { const url = (typeof input === 'string') ? input : input?.url; if (url && url.includes('webfonts')) { return new Response(JSON.stringify({ kind: "webfonts#webfontList", items: [ { family: `">`, category: "serif" } ] }), { status: 200, headers: { "Content-Type": "application/json" } }); } return window.__origFetch.apply(this, arguments); }; // Run this after: // document.dispatchEvent(new Event('DOMContentLoaded'));