remove(doubleCounterVerifyBypass): forced cloudflare, new system perhaps

This commit is contained in:
verticalsync 2024-12-09 20:15:59 +02:00 committed by thororen1234
parent 447d5e44ed
commit 9221f0ff1e
2 changed files with 0 additions and 83 deletions

View file

@ -46,7 +46,6 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
- DisableCameras by Joona
- DoNotLeak by Perny
- DontFilterMe by Samwich
- DoubleCounterBypass by nyx
- EmojiDumper by Cortex, Samwich, Woosh
- Encryptcord by Inbestigator
- EquicordCSS by thororen, Panniku, Dablulite, Coolesding, MiniDiscordThemes, LuckFire, gold_me

View file

@ -1,82 +0,0 @@
/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { NavContextMenuPatchCallback } from "@api/ContextMenu";
import { Devs } from "@utils/constants";
import definePlugin from "@utils/types";
import { Alerts, Menu } from "@webpack/common";
import { Message } from "discord-types/general";
const DOUBLECOUNTER_APP_ID = "703886990948565003";
const VERIFICATION_LINK_REGEX = /https:\/\/verify.doublecounter.gg\/v\/[0-9a-z]{8,16}/g;
const patchMessageContextMenu: NavContextMenuPatchCallback = (children, { message }) => {
const { components } = message;
if (message.author.id === DOUBLECOUNTER_APP_ID && components?.length === 0 && message.embeds?.map(embed => embed)[0].fields.length === 4) {
children.push((
<Menu.MenuItem
id="ml-dcvp"
key="ml-dcvp-verify"
label="Bypass Double Counter"
color="brand"
action={() => {
const regex_link = VERIFICATION_LINK_REGEX.exec(message.embeds.map(embed => embed.fields.map(field => field))[0][1].rawValue);
if (regex_link) {
verify(regex_link[0]).then(() => {
Alerts.show({
title: "Verified",
body: "You have been verified successfully, please wait a little bit for DoubleCounter to update your roles.",
confirmText: "Okay",
});
});
} else {
Alerts.show({
title: "Link not found",
body: "The link has not been found in this message.",
confirmText: "Okay"
});
}
}}
/>
));
}
};
async function verify(link) {
try {
const res = await fetch(link);
console.log(res.ok);
} catch { }
}
export default definePlugin({
name: "DoubleCounterBypass",
description: "Bypass Double Counter verifications easily.",
authors: [Devs.nyx],
contextMenus: {
"message": patchMessageContextMenu,
},
flux: {
async MESSAGE_CREATE({ message }: { message: Message; }) {
if (message.author.id !== DOUBLECOUNTER_APP_ID || message.type !== 19 || message.embeds.length === 0) return;
// @ts-ignore
const link = VERIFICATION_LINK_REGEX.exec(message.embeds.map(embed => embed.fields.map(field => field))[0][1].value);
console.log(link);
await verify(link).then(() => {
Alerts.show({
title: "Verified",
body: "You have been verified successfully, please wait a little bit for DoubleCounter to update your roles.",
confirmText: "Okay",
onConfirm: () => { }
});
});
}
}
});