-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (42 loc) · 1.53 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Reddit thread nuke/unnuke</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
<div id="submit-box" class="box">
<h2>Reddit thread nuker/unnuker</h2>
<p>This tool will "nuke" or "unnuke" (i.e. remove all comments or approve all comments) on a given submission or comment chain.</p>
<p>Enter the URL of a reddit thread or comment chain:</p>
<input id="thread-url-box"></input>
<pre>
<code id="url-error-message"></code>
</pre>
<div id="url-error-message"></div>
<div id = "distinguished-container">
<input type="checkbox" id="preserve-distinguished-checkbox" checked>
Preserve 'distinguished' moderator comments
</input>
</div>
<div id = "removed-container" style = "display:none">
<input type="checkbox" id="preserve-removed-checkbox" checked>
Don't approve comments removed by other moderators
</input>
</div>
<select id="to-nuke" onchange="showHide()">
<option value="nuke">Nuke</option>
<option value="unnuke">Un-nuke</option>
</select>
<div>
<button id="submit-button" onclick="onSubmitClicked()" class="submit">Submit</button>
</div>
<p id="error-output">An unknown error occured. Check the dev console for more details.</p>
<p id="loading-message">nuking/un-nuking thread... <span id="removed-count">0</span> items removed/approved</p>
<p id="done-message">done</p>
</div>
</body>
<script src="https://not-an-aardvark.github.io/snoowrap/snoowrap-v1.min.js"></script>
<script src="nukeThread.js"></script>
</html>