2022-10-04 00:52:42 +02:00
|
|
|
if (typeof browser === "undefined") {
|
|
|
|
var browser = chrome;
|
|
|
|
}
|
|
|
|
|
2022-12-25 20:47:35 +01:00
|
|
|
const script = document.createElement("script");
|
2022-10-04 00:52:42 +02:00
|
|
|
script.src = browser.runtime.getURL("dist/Vencord.js");
|
2022-12-25 20:47:35 +01:00
|
|
|
|
|
|
|
const style = document.createElement("link");
|
|
|
|
style.type = "text/css";
|
|
|
|
style.rel = "stylesheet";
|
|
|
|
style.href = browser.runtime.getURL("dist/Vencord.css");
|
|
|
|
|
|
|
|
document.documentElement.append(script);
|
|
|
|
|
|
|
|
document.addEventListener(
|
|
|
|
"DOMContentLoaded",
|
|
|
|
() => document.documentElement.append(style),
|
|
|
|
{ once: true }
|
|
|
|
);
|