Download webgpu/extension/content.js from PYTHAI/drAIML: direct link, hf CLI and curl.
- Browser
- Download file 584 Bytes
-
https://huggingface.co/spaces/PYTHAI/drAIML/resolve/main/webgpu/extension/content.js
- Command line
-
hf download hf://spaces/PYTHAI/drAIML/webgpu/extension/content.js
-
curl -L -o content.js https://huggingface.co/spaces/PYTHAI/drAIML/resolve/main/webgpu/extension/content.js
584 Bytes
| // SPDX-License-Identifier: MIT | |
| // drAIML WebGPU helper · on drAIML's pages only. Tells the page the helper is installed (so its donation panel can offer | |
| // "check my graphics card"), and opens the check when the page asks. It reads nothing from the page. | |
| const api = typeof browser !== "undefined" ? browser : chrome; | |
| document.documentElement.dataset.webgpuHelper = api.runtime.getManifest().version; | |
| window.addEventListener("message", (e) => { | |
| if (e.source === window && e.data && e.data.type === "draiml-webgpu-helper:open") api.runtime.sendMessage({ type: "open-check" }); | |
| }); | |