Added usrbg.

This commit is contained in:
Keanu Timmermans 2021-03-04 19:04:47 +01:00
parent 5b02d77a1b
commit 2f752ab25d
Signed by: keanucode
GPG Key ID: A7431C0D513CA93B
2 changed files with 32 additions and 0 deletions

11
usrbg/goosemodModule.json Normal file
View File

@ -0,0 +1,11 @@
{
"main": "index.js",
"name": "Usrbg - Keanu",
"description": "My personal version of usrbg.",
"tags": ["ui"],
"authors": ["717352467280691331"],
"version": "1.0.0"
}

21
usrbg/index.js Normal file
View File

@ -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();
},
},
};