Fix preload, add new version string check and remove author from GooseMod Plugin

This commit is contained in:
smartfridge 2021-05-10 09:49:24 +02:00
parent df5403c1c8
commit 243306ab19
3 changed files with 9 additions and 18 deletions

View file

@ -1,7 +1,6 @@
{
"name": "GooseMod",
"version": "1.0",
"author": "AAGaming",
"description": "Loads GooseMod, a discord client modification",
"background": {
"scripts": [

View file

@ -26,7 +26,6 @@ window.addEventListener("DOMContentLoaded", () => {
ArmCord.addStyle(`
@import url("https://kckarnige.github.io/femboi_owo/discord-font.css");
:root {
--window-buttons: var(--header-secondary);
--cord-color: var(--header-primary);
@ -42,11 +41,9 @@ window.addEventListener("DOMContentLoaded", () => {
overflow: hidden;
border-top-left-radius: 8px;
}
div.menubar[role="menubar"] {
width: 0px;
}
.window-title:after {
content: "Cord";
color: var(--cord-color) !important;
@ -54,7 +51,6 @@ div.menubar[role="menubar"] {
font-size: 14px;
font-family: Discordinated;
}
.window-title:before {
content: "ARM";
color: var(--armcord-color);
@ -62,33 +58,31 @@ div.menubar[role="menubar"] {
font-size: 14px;
font-family: Helvetica, sans-serif;
}
.window-title {
font-size: 0px !important;
margin-left: initial !important;
transform: translate(10px, 2px) !important;
}
.titlebar {
background: var(--background-tertiary) !important;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.titlebar .window-controls-container .window-icon {
background: var(--window-buttons) !important;
}
`);
ArmCord.addStyle(`.info-1VyQPT:last-child:before {
content: "ArmCord Version: ` + ArmCord.Version + `";
ArmCord.addStyle(
`.info-1VyQPT:last-child:before {
content: "ArmCord Version: ` +
ArmCord.Version +
`";
height: auto;
line-height: 16px;
text-align: center;
color: var(--text-muted);
font-size: 12px;
text-transform: none;
}`);
})
}`
);
});

View file

@ -1,5 +1,4 @@
exports.Version = "2.4";
exports.Version = require("../package.json").version;
exports.addStyle = function (styleString) {
const style = document.createElement("style");
@ -12,4 +11,3 @@ exports.addScript = function (scriptString) {
script.textContent = scriptString;
document.body.append(script);
};