Vencord/browser/content.js

20 lines
493 B
JavaScript
Raw Normal View History

2022-10-03 22:52:42 +00:00
if (typeof browser === "undefined") {
var browser = chrome;
}
const script = document.createElement("script");
2022-10-03 22:52:42 +00:00
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 }
);