Drop IgnoreTerms
This commit is contained in:
parent
c88da3a6ab
commit
353590a811
1 changed files with 0 additions and 29 deletions
|
|
@ -1,29 +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: "IgnoreTerms",
|
||||
description: "Ignore Discord's new terms of service",
|
||||
authors: [Devs.D3SOX],
|
||||
patches: [
|
||||
{
|
||||
find: "#{intl::NEW_TERMS_TITLE}",
|
||||
replacement: {
|
||||
match: /function (\i)\((\i)\)\{let\{transitionState:(\i)\}=(\i)/g,
|
||||
replace: "function $1($2){return $self.closeModal($2);let{transitionState:$3}=$4"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
closeModal(event) {
|
||||
event.transitionState = null;
|
||||
event.onClose();
|
||||
return null;
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue