-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
64 lines (59 loc) · 1.89 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" type="text/css">
<link rel="stylesheet" href="https://unpkg.com/sakura.css/css/sakura-vader.css" type="text/css">
<title>Colin's Enmity Plugins</title>
</head>
<body>
<h1>Colin's Enmity Plugins</h1>
<p>To install a plugin, click on the "install" button.</p>
<hr />
<article>
<h2>CreateWebhooks</h2>
<p>2.0.1</p>
<blockquote>
<p>Create webhooks from the webhook management screens</p>
</blockquote>
<button data-name="CreateWebhooks">
Install plugin
</button>
</article><hr /><article>
<h2>Freemoji</h2>
<p>2.0.3</p>
<blockquote>
<p>Send external emoji without Nitro as image links</p>
</blockquote>
<button data-name="Freemoji">
Install plugin
</button>
</article><hr /><article>
<h2>NoReplyMention</h2>
<p>1.1.0</p>
<blockquote>
<p>Disable reply pings by default</p>
</blockquote>
<button data-name="NoReplyMention">
Install plugin
</button>
</article>
<hr />
<p>Generated using <a href="https://github.com/enmity-mod/enmity-store">enmity-store</a>.</p>
<script>
const buttons = document.querySelectorAll("button");
buttons.forEach(button => {
button.onclick = () => {
let pluginUrl = location.href;
if (pluginUrl.toLowerCase().endsWith("index.html")) pluginUrl =
pluginUrl.slice(0, -10);
if (pluginUrl.endsWith("/")) pluginUrl = pluginUrl.slice(0, -1);
location.href =
`com.hammerandchisel.discord://enmity?id=-1&command=install-plugin¶ms=${pluginUrl}/plugins/${button.dataset.name}.js`
};
});
</script>
</body>
</html>