My Express App

Hello from comments from NODE.JS!

GitHub
Example from GitHub
async function loadAssets() {
try {
// Загружаем CSS
const cssResponse = await fetch("https://comments.qucu.ru/style");
const cssText = await cssResponse.text();
const style = document.createElement("style");
style.textContent = cssText;
document.head.append(style);

// Загружаем JS с ID пользователя
const jsResponse = await fetch(`https://comments.qucu.ru/js/Your ID`);
const jsText = await jsResponse.text();
const js = document.createElement("script");
js.type = "text/javascript";
js.textContent = jsText;
document.head.append(js);

console.log("JS и CSS успешно подгружены для пользователя #Your ID!");
} catch (err) {
console.error("Ошибка загрузки:", err);
}
}

loadAssets();