mirror of https://github.com/NovaGM/Modules.git
Added usrbg.
This commit is contained in:
parent
5b02d77a1b
commit
2f752ab25d
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"main": "index.js",
|
||||||
|
|
||||||
|
"name": "Usrbg - Keanu",
|
||||||
|
"description": "My personal version of usrbg.",
|
||||||
|
"tags": ["ui"],
|
||||||
|
|
||||||
|
"authors": ["717352467280691331"],
|
||||||
|
|
||||||
|
"version": "1.0.0"
|
||||||
|
}
|
|
@ -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…
Reference in New Issue