-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
35 lines (35 loc) · 1.28 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Replugged Theme Converter</title>
<link rel="stylesheet" href="./main.css" />
</head>
<body>
<h1>BetterDiscord → Replugged Theme Converter</h1>
<h3>Instructions</h3>
<ol>
<li>Download a <a href="https://betterdiscord.app/themes">BetterDiscord theme</a> (.theme.css).</li>
<li>Upload it to the file picker below.</li>
<li>Click "Convert" and allow the download if needed.</li>
<li>Move the resulting .asar file to your Replugged themes folder.</li>
<li>Click "Load missing themes" in Discord settings → Themes to apply the theme.</li>
</ol>
<form>
<input type="file" accept="text/css" id="bdcss" />
<input type="button" value="Convert" id="convertbtn" />
</form>
<script type="module">
import { convertTheme } from "./convert-theme.js";
const convertButton = document.getElementById("convertbtn");
const fileInput = document.getElementById("bdcss");
convertButton.onclick = () => {
if (fileInput.files.length) {
convertTheme(fileInput.files[0])
.catch(err => void alert(err));
}
}
</script>
</body>
</html>