Skip to content

Commit

Permalink
Smol fixes n tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Milkshiift committed Nov 6, 2023
1 parent 90e0d93 commit 7b4ed4c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ GoofCord also does some clever tricks to make Discord think you are just using a
### How can I access the settings? ⚙️
- Multiple ways:
- Right-click on the tray icon and click `Open Settings`
- Open Discord settings, and you should see the top most button in the category "GoofCord," click it, and the settings will pop out for you.
- Open Discord settings, and you should see the top most button in the category "GoofCord", click it, and the settings will pop out for you.
- Press `Ctrl+Shift+'` shortcut.

### Seeking the Source Code? 🕵️‍♂️
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"name": "goofcord",
"version": "1.0.0",
"version": "1.0.1",
"description": "Take control of your Discord experience with GoofCord – the highly configurable and privacy-first discord client.",
"main": "ts-out/main.js",
"scripts": {
"build": "tsc && copyfiles -u 1 src/**/*.html src/**/**/*.css src/**/**/*.js ts-out/ && copyfiles package.json ts-out/ && copyfiles assets/**/** ts-out/",
"start": "pnpm run build && electron ./ts-out/main.js",
"packageLinux": "npm run build && electron-builder --linux",
"packageWindows64": "npm run build && electron-builder --win --x64",
"packageWindows32": "npm run build && electron-builder --win --ia32",
"packageWindows": "npm run build && npm run packageWindows64 && npm run packageWindows32"
"packageWindows": "npm run build && electron-builder --win",
"packageMac": "npm run build && electron-builder --mac"
},
"repository": {
"type": "git",
Expand Down
15 changes: 15 additions & 0 deletions src/content/css/discord.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,29 @@
padding-right: 0;
}

/* Hide download discord button */
[class^="listItem_"]:has([data-list-item-id="guildsnav___app-download-button"]),
[class^="listItem_"]:has(+ [class^="listItem_"] [data-list-item-id="guildsnav___app-download-button"]) {
display: none;
}

/* Hide avatar decoration ad */
.containerWrapper_fa6aa6.animation_fb8933.withoutAvatar__0549d {
display: none;
}

/* Could improve scrolling performance? Probably outdated. https://stackoverflow.com/questions/18529381/what-does-webkit-transform-translate3d0-0-0-exactly-do-apply-to-body */
.scroller-kQBbkU {
transform: translateZ(0);
-webkit-backface-visibility: hidden;
-webkit-perspective: 1000px;
}

/* Invidious embed improvements */
.vjs-button.watch-on-invidious,
.vjs-icon-share,
.vjs-remaining-time,
.vjs-overlay
{
display: none;
}
3 changes: 2 additions & 1 deletion src/modules/messageEncryption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const stegcloak = new StegCloak(true, false);

const encryptionPasswords: string[] = [];
let chosenPassword: string;
const encryptionMark = getConfigSync("encryptionMark");
let encryptionMark = getConfigSync("encryptionMark");
if (encryptionMark === undefined) encryptionMark = "| ";

(async function loadPasswords() {
const encryptedPasswords = await getConfig("encryptionPasswords");
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const DEFAULTS: Settings = {
autoUpdateDefaultScripts: true,
disableAutogain: false,
encryptionCover: "",
encryptionMark: "🔒| ",
encryptionMark: "| ",
modName: "vencord",
prfmMode: "none",
discordUrl: "https://canary.discord.com/app",
Expand Down

0 comments on commit 7b4ed4c

Please sign in to comment.