2e5d27b6b6
Co-authored-by: Vap0r1ze <superdash993@gmail.com>
20 lines
493 B
JavaScript
20 lines
493 B
JavaScript
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 }
|
|
);
|