You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
if (typeof browser === "undefined") {
|
|
|
|
var browser = chrome;
|
|
|
|
}
|
|
|
|
|
|
|
|
const script = document.createElement("script");
|
|
|
|
script.src = browser.runtime.getURL("dist/Vencord.js");
|
|
|
|
|
|
|
|
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 }
|
|
|
|
);
|