-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
86 lines (80 loc) · 3.23 KB
/
index.html
File metadata and controls
86 lines (80 loc) · 3.23 KB
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
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Wasm UEFIPatch</title>
<link rel="stylesheet" href="stylesheet.css">
</head>
<body style="background-color: black;" onload="init()">
<h2 class="title-width no-bottom">Wasm UEFIPatch </h2>
<label class="link" for="toggleAbout" style="cursor:pointer;">
Toggle Info
</label>
<input type="checkbox" id="toggleAbout" hidden>
<div id="about">
<h3>Instructions:</h3>
<ol>
<li>Configure patches.</li>
<li>Load your firmware.</li>
<li>Click "Patch".</li>
</ol>
<h3 class="title">Notes:</h3>
<ul>
<li>Modified and compiled by <a href="https://virtfunc.com" target="_blank">VirtFunc</a>.</li>
<li>Uses <a href="https://github.com/LongSoft/UEFITool/blob/old_engine/UEFIPatch/" target="_blank">UEFIPatch</a>
under the hood. Upstream License: <a href="https://github.com/LongSoft/UEFITool?tab=BSD-2-Clause-1-ov-file"
target="_blank">BSD-2-Clause</a>.</li>
<li>Source: <a href="https://github.com/VirtFunc/uefipatchwasm" target="_blank">GitHub:
VirtFunc/uefipatchwasm</a>.</li>
<li>Wasm module is ~3MiB, may load slowly as a result.</li>
<li>Old UEFITool engine is used, it has been known to <a target="_blank"
href="https://github.com/LongSoft/UEFITool/issues/192">break some firmware images</a>. Proceed only if you
have recovery method (or don't care).</li>
<li>Performance is roughly 80% of the CLI version, due to Wasm overhead. Firefox is much slower in my
experience.</li>
</ul>
</div>
<div id="main">
<div id="left-panel">
<div id="patches-selector">
<h3>Patches:</h3>
<!-- these are runtime loaded. -->
<div id="preset-patches"></div>
<div id="custom-patches">
<input type="checkbox" data-patchname="custom"><strong>Custom: </strong>Add your own patches.
<a href="https://raw.githubusercontent.com/LongSoft/UEFITool/refs/heads/old_engine/UEFIPatch/patches.txt"
target="_blank">Patch Format Guide</a>.
</input>
<textarea id="custom-patches" oninput='this.style.height = "";this.style.height = this.scrollHeight + "px"'
data-patchname="custom" placeholder="Enter custom patches here"></textarea>
</div>
</div>
<div id="file-inputs">
<h3>Load Firmware (or drag and drop):</h3>
<input type="file" id="input-rom" accept=".rom,.bin,.hex,.fw,.img,.bin,.iso,">
</div>
<div>
<button id="run-patch">Patch</button>
</div>
<div class="title-width" id="wasm-progress-container">
<div class="progress-border">
<div id="wasm-progress-bar"></div>
</div>
<div id="wasm-progress-text"></div>
</div>
</div>
<div id="patches-and-output">
<h3>Pending patches:</h3>
<pre id="patches-pending"></pre>
<h3>Output:</h3>
<pre id="output"></pre>
</div>
</div>
<figure style="overflow:visible;">
<div id="status"></div>
<noscript>JavaScript is disabled. Enable JavaScript and WASM to use UEFIPatch.</noscript>
</figure>
<script src="init.js"></script>
</body>
</html>