diff --git a/usrbg/goosemodModule.json b/usrbg/goosemodModule.json new file mode 100644 index 0000000..1c281f3 --- /dev/null +++ b/usrbg/goosemodModule.json @@ -0,0 +1,11 @@ +{ + "main": "index.js", + + "name": "Usrbg - Keanu", + "description": "My personal version of usrbg.", + "tags": ["ui"], + + "authors": ["717352467280691331"], + + "version": "1.0.0" +} diff --git a/usrbg/index.js b/usrbg/index.js new file mode 100644 index 0000000..a92589b --- /dev/null +++ b/usrbg/index.js @@ -0,0 +1,21 @@ +import { version } from './goosemodModule.json'; + +let el; + +const css = `@import url("https://keanuplayz.github.io/usrbg/dist/usrbg.css");`; + +export default { + goosemodHandlers: { + onImport: async function () { + el = document.createElement('style'); + + document.head.appendChild(el); + + el.appendChild(document.createTextNode(css)); + }, + + onRemove: async function () { + el.remove(); + }, + }, +};