mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-16 18:07:02 -04:00
parent
e563521416
commit
74c3930e0a
41 changed files with 141 additions and 87 deletions
|
@ -1,5 +1,5 @@
|
|||
import definePlugin from "../utils/types";
|
||||
import { Devs } from '../utils/constants';
|
||||
import { Devs } from "../utils/constants";
|
||||
|
||||
export default definePlugin({
|
||||
name: "STFU",
|
||||
|
|
|
@ -7,7 +7,7 @@ export default definePlugin({
|
|||
description: "Api required by anything that uses commands",
|
||||
patches: [
|
||||
{
|
||||
find: `"giphy","tenor"`,
|
||||
find: '"giphy","tenor"',
|
||||
replacement: [
|
||||
{
|
||||
// Matches BUILT_IN_COMMANDS. This is not exported so this is
|
||||
|
|
|
@ -13,7 +13,7 @@ export default definePlugin({
|
|||
{
|
||||
match: /;(.{1,2}=null;)(?=.{0,50}updateNotice)/g,
|
||||
replace:
|
||||
';if(Vencord.Api.Notices.currentNotice)return !1;$1'
|
||||
";if(Vencord.Api.Notices.currentNotice)return !1;$1"
|
||||
},
|
||||
{
|
||||
match: /(?<=NOTICE_DISMISS:function.+?){(?=if\(null==(.+?)\))/,
|
||||
|
|
|
@ -90,7 +90,7 @@ export default definePlugin({
|
|||
}
|
||||
|
||||
// Check all universal rules
|
||||
this.universalRules.forEach((rule) => {
|
||||
this.universalRules.forEach(rule => {
|
||||
url.searchParams.forEach((_value, param, parent) => {
|
||||
this.removeParam(rule, param, parent);
|
||||
});
|
||||
|
@ -99,7 +99,7 @@ export default definePlugin({
|
|||
// Check rules for each hosts that match
|
||||
this.hostRules.forEach((regex, hostRuleName) => {
|
||||
if (!regex.test(url.hostname)) return;
|
||||
this.rulesByHost.get(hostRuleName).forEach((rule) => {
|
||||
this.rulesByHost.get(hostRuleName).forEach(rule => {
|
||||
url.searchParams.forEach((_value, param, parent) => {
|
||||
this.removeParam(rule, param, parent);
|
||||
});
|
||||
|
@ -114,7 +114,7 @@ export default definePlugin({
|
|||
if (msg.content.match(/http(s)?:\/\//)) {
|
||||
msg.content = msg.content.replace(
|
||||
/(https?:\/\/[^\s<]+[^<.,:;"'>)|\]\s])/g,
|
||||
(match) => this.replacer(match)
|
||||
match => this.replacer(match)
|
||||
);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Devs } from "../utils/constants";
|
||||
import definePlugin from "../utils/types";
|
||||
import { Toasts } from '../webpack/common';
|
||||
import { Toasts } from "../webpack/common";
|
||||
|
||||
export default definePlugin({
|
||||
name: "ClickableRoleDot",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Devs } from "../utils/constants";
|
||||
import definePlugin from '../utils/types';
|
||||
import definePlugin from "../utils/types";
|
||||
|
||||
export default definePlugin({
|
||||
name: "Experiments",
|
||||
|
|
|
@ -12,7 +12,7 @@ export default definePlugin({
|
|||
name: "lenny",
|
||||
description: "Sends a lenny face",
|
||||
options: [OptionalMessageOption],
|
||||
execute: (opts) => ({
|
||||
execute: opts => ({
|
||||
content: findOption(opts, "message", "") + " ( ͡° ͜ʖ ͡°)"
|
||||
}),
|
||||
},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { addClickListener, removeClickListener } from '../api/MessageEvents';
|
||||
import { addClickListener, removeClickListener } from "../api/MessageEvents";
|
||||
import { Devs } from "../utils/constants";
|
||||
import definePlugin from "../utils/types";
|
||||
import { find, findByProps } from "../webpack";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import definePlugin from "../utils/types";
|
||||
import {Devs} from "../utils/constants";
|
||||
import { Devs } from "../utils/constants";
|
||||
|
||||
export default definePlugin({
|
||||
name: "MuteNewGuild",
|
||||
|
@ -14,4 +14,4 @@ export default definePlugin({
|
|||
}
|
||||
}
|
||||
],
|
||||
})
|
||||
});
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { addPreSendListener, addPreEditListener, SendListener, removePreSendListener, removePreEditListener } from '../api/MessageEvents';
|
||||
import { addPreSendListener, addPreEditListener, removePreSendListener, removePreEditListener } from "../api/MessageEvents";
|
||||
import { findByProps } from "../webpack";
|
||||
import definePlugin from "../utils/types";
|
||||
import { Devs } from '../utils/constants';
|
||||
import { UserStore } from '../webpack/common';
|
||||
import { Devs } from "../utils/constants";
|
||||
import { UserStore } from "../webpack/common";
|
||||
|
||||
export default definePlugin({
|
||||
name: "NitroBypass",
|
||||
|
@ -11,7 +11,7 @@ export default definePlugin({
|
|||
dependencies: ["MessageEventsAPI"],
|
||||
patches: [
|
||||
{
|
||||
find: `canUseAnimatedEmojis:function`,
|
||||
find: "canUseAnimatedEmojis:function",
|
||||
replacement: [
|
||||
"canUseAnimatedEmojis",
|
||||
"canUseEmojisEverywhere",
|
||||
|
@ -58,8 +58,8 @@ export default definePlugin({
|
|||
if (!emoji.require_colons) continue;
|
||||
if (emoji.guildId === guildId && !emoji.animated) continue;
|
||||
|
||||
const emojiString = `<${emoji.animated ? 'a' : ''}:${emoji.originalName || emoji.name}:${emoji.id}>`;
|
||||
const url = emoji.url.replace(/\?size=[0-9]+/, `?size=48`);
|
||||
const emojiString = `<${emoji.animated ? "a" : ""}:${emoji.originalName || emoji.name}:${emoji.id}>`;
|
||||
const url = emoji.url.replace(/\?size=[0-9]+/, "?size=48");
|
||||
messageObj.content = messageObj.content.replace(emojiString, (match, offset, origStr) => {
|
||||
return `${getWordBoundary(origStr, offset - 1)}${url}${getWordBoundary(origStr, offset + match.length)}`;
|
||||
});
|
||||
|
@ -74,7 +74,7 @@ export default definePlugin({
|
|||
if (emoji == null || (emoji.guildId === guildId && !emoji.animated)) continue;
|
||||
if (!emoji.require_colons) continue;
|
||||
|
||||
const url = emoji.url.replace(/\?size=[0-9]+/, `?size=48`);
|
||||
const url = emoji.url.replace(/\?size=[0-9]+/, "?size=48");
|
||||
messageObj.content = messageObj.content.replace(emojiStr, (match, offset, origStr) => {
|
||||
return `${getWordBoundary(origStr, offset - 1)}${url}${getWordBoundary(origStr, offset + match.length)}`;
|
||||
});
|
||||
|
|
|
@ -16,4 +16,4 @@ export default definePlugin({
|
|||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
});
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import definePlugin from "../utils/types";
|
||||
import { Devs } from '../utils/constants';
|
||||
import { Devs } from "../utils/constants";
|
||||
|
||||
export default definePlugin({
|
||||
name: "NoTrack",
|
||||
|
|
|
@ -23,6 +23,6 @@ export default definePlugin({
|
|||
{ length: 7 },
|
||||
() => chars[Math.floor(Math.random() * chars.length)]
|
||||
).join("");
|
||||
return rand + (file.lastIndexOf(".") > -1 ? file.slice(file.lastIndexOf(".")) : "")
|
||||
return rand + (file.lastIndexOf(".") > -1 ? file.slice(file.lastIndexOf(".")) : "");
|
||||
},
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import definePlugin from "../utils/types";
|
||||
import gitHash from "git-hash";
|
||||
import { Devs } from '../utils/constants';
|
||||
import { Devs } from "../utils/constants";
|
||||
|
||||
export default definePlugin({
|
||||
name: "Settings",
|
||||
|
@ -30,8 +30,8 @@ export default definePlugin({
|
|||
match: /\{section:(.{1,2})\.ID\.HEADER,\s*label:(.{1,2})\..{1,2}\.Messages\.ACTIVITY_SETTINGS\}/,
|
||||
replace: (m, mod) =>
|
||||
`{section:${mod}.ID.HEADER,label:"Vencord"},` +
|
||||
`{section:"VencordSetting",label:"Vencord",element:Vencord.Components.Settings},` +
|
||||
`{section:"VencordUpdater",label:"Updater",element:Vencord.Components.Updater,predicate:()=>!IS_WEB},` +
|
||||
'{section:"VencordSetting",label:"Vencord",element:Vencord.Components.Settings},' +
|
||||
'{section:"VencordUpdater",label:"Updater",element:Vencord.Components.Updater,predicate:()=>!IS_WEB},' +
|
||||
`{section:${mod}.ID.DIVIDER},${m}`
|
||||
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import definePlugin from '../utils/types';
|
||||
import { Devs } from '../utils/constants';
|
||||
import definePlugin from "../utils/types";
|
||||
import { Devs } from "../utils/constants";
|
||||
|
||||
export default definePlugin({
|
||||
name: "SilentTyping",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import definePlugin from "../utils/types";
|
||||
import { addPreSendListener, addPreEditListener, MessageObject, removePreSendListener, removePreEditListener } from '../api/MessageEvents';
|
||||
import { Devs } from '../utils/constants';
|
||||
import { addPreSendListener, addPreEditListener, MessageObject, removePreSendListener, removePreEditListener } from "../api/MessageEvents";
|
||||
import { Devs } from "../utils/constants";
|
||||
|
||||
export default definePlugin({
|
||||
name: "Unindent",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Devs } from "../utils/constants";
|
||||
import IpcEvents from "../utils/IpcEvents";
|
||||
import definePlugin from '../utils/types';
|
||||
import definePlugin from "../utils/types";
|
||||
|
||||
const OPEN_URL = "Vencord.Plugins.plugins.ViewIcons.openImage(";
|
||||
export default definePlugin({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue