mirror of
https://github.com/NovaGM/Modules.git
synced 2024-08-14 22:47:01 +00:00
Added usrbg.
This commit is contained in:
parent
5b02d77a1b
commit
2f752ab25d
2 changed files with 32 additions and 0 deletions
11
usrbg/goosemodModule.json
Normal file
11
usrbg/goosemodModule.json
Normal 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
21
usrbg/index.js
Normal 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();
|
||||
},
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue