Merge branch 'dev'

This commit is contained in:
thororen1234 2024-12-11 23:53:27 -05:00
commit 12b03cd1ec
6 changed files with 135 additions and 106 deletions

View file

@ -10,7 +10,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
### Extra included plugins ### Extra included plugins
<details> <details>
<summary>150 additional plugins</summary> <summary>149 additional plugins</summary>
### All Platforms ### All Platforms
- AllCallTimers by MaxHerbold & D3SOX - AllCallTimers by MaxHerbold & D3SOX
@ -25,6 +25,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
- BetterInvites by iamme - BetterInvites by iamme
- BetterQuickReact by Ven & Sqaaakoi - BetterQuickReact by Ven & Sqaaakoi
- BetterUserArea by Samwich - BetterUserArea by Samwich
- BetterPlusReacts by Joona
- BlockKeywords by catcraft - BlockKeywords by catcraft
- BlockKrsip by D3SOX - BlockKrsip by D3SOX
- BypassStatus by Inbestigator & thororen - BypassStatus by Inbestigator & thororen
@ -41,8 +42,8 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
- CuteNekos by echo - CuteNekos by echo
- CutePats by thororen - CutePats by thororen
- DecodeBase64 by ThePirateStoner - DecodeBase64 by ThePirateStoner
- DeadMembers by Kyuuhachi
- Demonstration by Samwich - Demonstration by Samwich
- DisableAnimations by S€th
- DisableCameras by Joona - DisableCameras by Joona
- DoNotLeak by Perny - DoNotLeak by Perny
- DontFilterMe by Samwich - DontFilterMe by Samwich
@ -65,7 +66,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
- GodMode by Tolgchu - GodMode by Tolgchu
- GoodPerson by nin0dev & mantikafasi - GoodPerson by nin0dev & mantikafasi
- GoogleThat by Samwich - GoogleThat by Samwich
- GrammarFix by unstream - GrammarFix by S€th
- HideChatButtons by iamme - HideChatButtons by iamme
- HideMessage by Hanzy - HideMessage by Hanzy
- HideServers by bepvte - HideServers by bepvte
@ -95,7 +96,6 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
- MessageTranslate by Samwich - MessageTranslate by Samwich
- ModalFade by Kyuuhachi - ModalFade by Kyuuhachi
- MoreStickers by Leko & Arjix - MoreStickers by Leko & Arjix
- MoreThemes by Kyuuhachi
- NewPluginsManager by Sqaaakoi - NewPluginsManager by Sqaaakoi
- NoAppsAllowed by kvba - NoAppsAllowed by kvba
- NoBulletPoints by Samwich - NoBulletPoints by Samwich
@ -189,6 +189,7 @@ Linux
```shell ```shell
sh -c "$(curl -sS https://raw.githubusercontent.com/Equicord/Equicord/refs/heads/main/misc/install.sh)" sh -c "$(curl -sS https://raw.githubusercontent.com/Equicord/Equicord/refs/heads/main/misc/install.sh)"
``` ```
## Installing Equicord Devbuild ## Installing Equicord Devbuild
### Dependencies ### Dependencies

View file

@ -1,36 +1,44 @@
#!/bin/sh #!/bin/sh
# Exit immediately if a command exits with a non-zero status
set -e set -e
# Check if the script is run as root
if [ "$(id -u)" -eq 0 ]; then if [ "$(id -u)" -eq 0 ]; then
echo "Run me as a normal user, not root!" echo "Run this script as a normal user, not root!"
exit 1 exit 1
fi fi
# Define variables
installer_path="$HOME/.equilotl" installer_path="$HOME/.equilotl"
github_url="https://github.com/Equicord/Equilotl/releases/latest/download/EquilotlCli-Linux" github_url="https://github.com/Equicord/Equilotl/releases/latest/download/EquilotlCli-Linux"
# Inform user about the update check
echo "Checking if the installer needs updating..." echo "Checking if the installer needs updating..."
# Fetch the latest modified date from the server
latest_modified=$(curl -sI "$github_url" | grep -i "last-modified" | cut -d' ' -f2-)
latest_modified=$(curl -sI "https://github.com/Equicord/Equilotl/releases/latest/download/EquilotlCli-Linux" | grep -i "last-modified" | cut -d' ' -f2-) # Check if the installer exists locally
if [ -f "$installer_path" ]; then if [ -f "$installer_path" ]; then
# Get the local file's last modified date
local_modified=$(stat -c "%y" "$installer_path" | cut -d' ' -f1-2) local_modified=$(stat -c "%y" "$installer_path" | cut -d' ' -f1-2)
# Compare the local file's date with the server's latest modified date
if [ "$local_modified" = "$latest_modified" ]; then if [ "$local_modified" = "$latest_modified" ]; then
echo "The installer is up-to-date." echo "The installer is up-to-date."
else else
echo "The installer is outdated. Downloading the latest version..." echo "The installer is outdated. Downloading the latest version..."
curl -sSL "https://github.com/Equicord/Equilotl/releases/latest/download/EquilotlCli-Linux" --output "$installer_path" curl -sSL "$github_url" --output "$installer_path"
chmod +x "$installer_path" chmod +x "$installer_path"
fi fi
else else
echo "Installer not found. Downloading it..." echo "Installer not found. Downloading it..."
curl -sSL "https://github.com/Equicord/Equilotl/releases/latest/download/EquilotlCli-Linux" --output "$installer_path" curl -sSL "$github_url" --output "$installer_path"
chmod +x "$installer_path" chmod +x "$installer_path"
fi fi
# Check for sudo or doas availability to run the installer with elevated privileges
if command -v sudo >/dev/null; then if command -v sudo >/dev/null; then
echo "Running installer with sudo..." echo "Running installer with sudo..."
sudo "$installer_path" sudo "$installer_path"
@ -41,5 +49,7 @@ else
echo "Neither sudo nor doas were found. Please install one to proceed." echo "Neither sudo nor doas were found. Please install one to proceed."
exit 1 exit 1
fi fi
# Provide script attribution
echo "Original script forked from Vencord" echo "Original script forked from Vencord"
echo "Modified by PhoenixAceVFX & Crxaw for Equicord Updater" echo "Modified by PhoenixAceVFX & Crxaw for Equicord Updater"

View file

@ -0,0 +1,61 @@
/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
// https://github.com/Masterjoona/vc-betterplusreacts/blob/main/index.ts
import { Devs } from "@utils/constants";
import definePlugin from "@utils/types";
import { findByPropsLazy } from "@webpack";
const { getMessages } = findByPropsLazy("getMessages");
export default definePlugin({
name: "BetterPlusReacts",
authors: [Devs.Joona],
description: "The amount of plus before :emoji: is the message to add it to",
patches: [
{
find: ".SLASH_COMMAND_USED,",
replacement: [
{
match: /\\\+/,
replace: "$&*"
},
{
match: /\i.trim\(\)/,
replace: "$&.replace(/^\\++/, '+')"
},
{
match: /=(\i\.\i\.getMessages\(\i\.id\))\.last\(\)(?=.{78,85}.getByName\((\i)\.)/,
replace: "=$self.getMsgReference()"
}
]
},
{
find: "this.props.activeCommandOption,",
replacement: [
// Enable auto complete for multiple plusses
// and set the message reference
{
match: /:this.props.currentWord/,
replace: "$&.replace(/^\\++/, '+')"
},
{
match: /this.props.editorRef.current\)return;/,
replace: "$&$self.setMsgReference(this.props.currentWord.split(':')[0],this.props.channel.id);"
}
]
},
],
message: null,
getMsgReference() {
const { message } = this;
this.message = null;
return message;
},
setMsgReference(plusses: string, channelId: string) {
this.message = getMessages(channelId).getByIndex(getMessages(channelId).length - plusses.split("+").length + 1);
}
});

View file

@ -1,62 +0,0 @@
/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { Devs } from "@utils/constants";
import definePlugin from "@utils/types";
import { ChannelStore, GuildMemberStore, useStateFromStores } from "@webpack/common";
export default definePlugin({
name: "DeadMembers",
description: "Shows when the sender of a message has left the guild",
authors: [Devs.Kyuuhachi],
patches: [
{
find: '.BADGES=1]="BADGES"',
replacement: {
match: /(\i)=\{className:\i.username,style:.*?onContextMenu:\i,children:.*?\},/,
replace: "$&__dummyvar=($1.children=$self.wrapMessageAuthor(arguments[0],$1.children)),"
}
},
{
find: "#{intl::FORUM_POST_AUTHOR_A11Y_LABEL}",
replacement: {
match: /(?<=\}=(\i),\{(user:\i,author:\i)\}=.{0,400}?\(\i\.Fragment,{children:)\i(?=}\),)/,
replace: "$self.wrapForumAuthor({...$1,$2},$&)"
}
},
],
wrapMessageAuthor({ message }, text) {
const channel = ChannelStore.getChannel(message.channel_id);
return message.webhookId
? text
: <DeadIndicator
channel={channel}
userId={message.author.id}
text={text}
/>;
},
wrapForumAuthor({ channel, user }, text) {
return !user
? text
: <DeadIndicator
channel={channel}
userId={user.id}
text={text}
/>;
},
});
function DeadIndicator({ channel, userId, text }) {
const isMember = useStateFromStores(
[GuildMemberStore],
() => GuildMemberStore.isMember(channel?.guild_id, userId),
);
return channel?.guild_id && !isMember ? <s className="c98-author-dead">{text}</s> : text;
}

View file

@ -0,0 +1,53 @@
/*
* Vencord, a modification for Discord's desktop app
* Copyright (c) 2022 Vendicated and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { EquicordDevs } from "@utils/constants";
import definePlugin from "@utils/types";
import { findAll } from "@webpack";
export default definePlugin({
name: "DisableAnimations",
description: "Disables most of Discord's animations.",
authors: [EquicordDevs.seth],
start() {
this.springs = findAll((mod) => {
if (!mod.Globals) return false;
return true;
});
for (const spring of this.springs) {
spring.Globals.assign({
skipAnimation: true,
});
}
this.css = document.createElement("style");
this.css.innerText = "* { transition: none !important; animation: none !important; }";
document.head.appendChild(this.css);
},
stop() {
for (const spring of this.springs) {
spring.Globals.assign({
skipAnimation: false,
});
}
if (this.css) this.css.remove();
}
});

View file

@ -1,34 +0,0 @@
/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { Devs } from "@utils/constants";
import definePlugin from "@utils/types";
export default definePlugin({
name: "MoreThemes",
description: "Enables Darker and Midnight themes",
authors: [Devs.Kyuuhachi],
patches: [
{
// matches twice: the settings menu and the settings context menu
find: '("appearance_settings")',
replacement: {
match: /\("appearance_settings"\)/,
replace: "$&||true"
},
all: true,
},
{
// make it actually save the setting instead of falling back to dark
find: 'getCurrentConfig({location:"ThemeStore"}).enabled',
replacement: {
match: /getCurrentConfig\(\{location:"ThemeStore"\}\)\.enabled/,
replace: "$&&&false"
},
}
],
});