-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
140 lines (127 loc) · 7.27 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!-- MIT License
Copyright (c) 2023 - 2024 treeben77
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. -->
<head>
<title>AutoMod Regex Generator</title>
<meta property="og:title" content="AutoMod Regex Generator"/>
<meta property="og:description" content="Quickly generate a regex for Discord's AutoMod that will protect your community from using leetspeak to bypass keyword rules."/>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width, user-scalable=no"/>
<link rel="stylesheet" href="static/main.css">
</head>
<body>
<div class="banner-notification banner-critical" id="javascript-disabled">
Enable JavaScript to generate regexes.
</div>
<div class="banner-notification banner-error" id="javascript-disabled-secondary">
Enable JavaScript to generate regexes.
</div>
<script>
document.getElementById("javascript-disabled").hidden = true;
document.getElementById("javascript-disabled-secondary").hidden = true;
</script>
<div class="header">
<a href="/automod-regex-generator/">AutoMod Regex Generator</a>
<div class="pages">
<a href="regexes.html">Regexes</a>
</div>
</div>
<div class="content">
<p>Generate regexes for Discord's AutoMod that will protect your community from using leetspeak to bypass AutoMod.</p>
<div class="step">
<p>1. Insert a keyword you'd like to filter with a regex.</p>
<input type="text" class="text-input" id="word-input" value="hello world">
</div>
<div class="step">
<div class="title-with-right-element">
<p>2. Change some settings to customize the regex.</p>
<button class="right-element" id="reset-settings">Reset Settings</button>
</div>
<div class="grid-row">
<div class="grid-item">
<input type="checkbox" id="filter-num" checked> Number Variants
<p>Prevents character replacements using numbers. (e.g. he11o)</p>
</div>
<div class="grid-item">
<input type="checkbox" id="filter-sym" checked> Symbol Variants
<p>Prevents character replacements using symbols. (e.g. he!!o)</p>
</div>
<div class="grid-item">
<input type="checkbox" id="filter-let" checked> Letter Variants
<p>Prevents character replacements using different letters. (e.g. heiio)</p>
</div>
<div class="grid-item">
<input type="checkbox" id="filter-emo" checked> Emoji Variants
<p>Prevents replacing a character with regional indicator emojis. (e.g. hell🅾️)</p>
</div>
<div class="grid-item">
<input type="checkbox" id="filter-uni"> Unicode Variants
<p>Prevents replacing a character with lookalike unicode characters (e.g. heןןo)</p>
</div>
<div class="grid-item">
<input type="checkbox" id="double-spm" checked> Letter Spam
<p>Prevents spamming the same character being spammed multiple times (e.g. hellllo)</p>
</div>
<div class="grid-item">
<input type="checkbox" id="multi-char"> Multi Character
<p>Prevents replacing a character with multiple. (e.g. |-|ello)</p>
</div>
<div class="grid-item">
<input type="checkbox" id="whitespace"> Extra Whitespace
<p>Prevents adding spaces unnecessary. (e.g. he llo) This could make the regex really long and <a class="warning-description">this could cause false positives!</a></p>
</div>
<div class="grid-item">
<input type="checkbox" id="vowel-less"> Vowelless Variants
<p>Prevents removing the vowels. (e.g. hllo) <a class="warning-description">This could cause false positives!</a></p>
</div>
<div class="grid-item">
<input type="checkbox" id="dedup-char"> Character Deduplication
<p>Prevents repeated characters from being removed unto one (e.g. helo) <a class="warning-description">This could cause false positives for some small words!</a></p>
</div>
<div class="grid-item">
<input type="checkbox" id="part-match" checked> Partial Matches
<p>Prevents adding text to the start or end of word. (e.g. hello!) <a class="warning-description">This could cause false positives for some small words!</a></p>
</div>
</div>
</div>
<div class="step">
<p>3. Copy the generated regex!</p>
<div class="error-box" id="regex-error-toolong" hidden>
This Regex is too long! You need to shorten it by shortening the word or disabling some customizer settings!
</div>
<div class="regex-results">
<button id="copy-regex">Copy</button>
<a id="regex-output">
h[e3]ll[o0] w[o0]rld
</a>
</div>
</div>
<p>You can also visit the <a class="link" href="regexes.html">Regexes page</a> to find regexes that block links, zalgo, and more.</p>
<p>If you're a developer, you can check out the <a class="link" href="api.html">API</a> to intergrate the generator into your own creations!</p>
<script src="static/index.js" type="module"></script>
</div>
<div class="footer">
<div class="footer-left">
AutoMod Regex Generator
<p class="footer-copyright">© treeben77 2024. Not affiliated with Discord.<br><a class="link" href="https://donate.stripe.com/cN23g53tk2U273G001">Donate</a> to the primary maintainer ❤️</p>
</div>
<div class="footer-right">
<p>Made by <a class="link" href="https://treeben77.xyz">treeben77</a></p>
<p>Join the <a class="link" href="https://discord.gg/4CSc9E5uQy">Discord Server</a></p>
<p>View the source on <a class="link" href="https://github.com/treeben77/automod-regex-generator">GitHub</a></p>
</div>
</div>
</body>