Thread viewer for Bluesky
1<!DOCTYPE html>
2<html>
3<head>
4 <meta charset="UTF-8">
5 <meta http-equiv="Content-Security-Policy" content="
6 default-src 'none';
7 script-src 'self' 'sha256-C5RUxaoIkpRux1/UhIgLL5RalHWo6EOGHzWOhCMr8Fs=';
8 style-src 'self';
9 img-src 'self' https:;
10 font-src 'self';
11 script-src-attr 'none';
12 style-src-attr 'none';
13 connect-src https: http://localhost:3000;
14 base-uri 'none';
15 form-action 'none';">
16
17 <title>Skythread</title>
18 <link href="./fontawesome/fontawesome.min.css" rel="stylesheet">
19 <link href="./fontawesome/solid.min.css" rel="stylesheet">
20 <link href="./fontawesome/regular.min.css" rel="stylesheet">
21 <link href="style.css" rel="stylesheet">
22</head>
23<body>
24 <div id="loader"><img src="icons/sunny.png"></div>
25
26 <div id="search">
27 <form method="get">
28 🌤 <input type="text" placeholder="Paste a thread link or type a #hashtag" name="q">
29 </form>
30 </div>
31
32 <div id="github">
33 <a href="https://github.com/mackuba/skythread" target="_blank">
34 <img src="icons/github.png">
35 </a>
36 </div>
37
38 <div id="account">
39 <i class="fa-regular fa-user-circle fa-xl"></i>
40 </div>
41
42 <div id="account_menu">
43 <ul>
44 <li><a href="#" data-action="incognito"
45 title="Temporarily load threads as a logged-out user"><span class="check">✓ </span>Incognito mode</a></li>
46
47 <li><a href="#" data-action="biohazard"
48 title="Show links to blocked and hidden comments"><span class="check">✓ </span>Show infohazards</a></li>
49
50 <li><a href="#" data-action="login">Log in</a></li>
51 <li><a href="#" data-action="logout">Log out</a></li>
52 </ul>
53 </div>
54
55 <div id="thread">
56 </div>
57
58 <div id="login" class="dialog">
59 <form method="get">
60 <i class="close fa-circle-xmark fa-regular"></i>
61 <h2>🌤 Skythread</h2>
62 <p><input type="text" id="login_handle" required placeholder="name.bsky.social"></p>
63 <p><input type="password" id="login_password" required
64 placeholder="✱✱✱✱✱✱✱✱"></p>
65 <p class="info"><a href="#"><i class="fa-regular fa-circle-question"></i> Use an "app password" here</a></p>
66 <div class="info-box">
67 <p>Bluesky API currently doesn't allow apps to request fine-grained permissions, only access to the whole account. However, you can generate an "app password" in the Bluesky app settings for this specific app that you can later revoke at any time.</p>
68 <p>The password you enter here is only passed to the Bluesky API and isn't saved anywhere. The returned access token is only stored in your browser's local storage. You can see the complete source code of this app <a href="http://github.com/mackuba/skythread" target="_blank">on GitHub</a>.</p>
69 </div>
70 <p class="submit">
71 <input id="login_submit" type="submit" value="Log in">
72 <i id="cloudy" class="fa-solid fa-cloud fa-beat fa-xl"></i>
73 </p>
74 </form>
75 </div>
76
77 <div id="biohazard_dialog" class="dialog">
78 <form method="get">
79 <i class="close fa-circle-xmark fa-regular"></i>
80 <h2>☣️ Infohazard Warning</h2>
81 <p>“<em>This thread is not a place of honor... no highly esteemed post is commemorated here... nothing valued is here.</em>”</p>
82 <p>This feature allows access to comments in a thread which were hidden because one of the commenters has blocked another. Bluesky currently hides such comments to avoid escalating conflicts.</p>
83 <p>Are you sure you want to enter?<br>(You can toggle this in the menu in top-left corner.)</p>
84 <p class="submit">
85 <input type="submit" id="biohazard_show" value="Show me the drama 😈">
86 <input type="submit" id="biohazard_hide" value="Nope, I'd rather not 🙈">
87 </p>
88 </form>
89 </div>
90
91 <div id="posting_stats_page">
92 <h2>Bluesky posting statistics</h2>
93
94 <form>
95 <p>
96 Scan posts from:
97 <input type="radio" name="scan_type" id="scan_type_timeline" value="home" checked>
98 <label for="scan_type_timeline">Home timeline</label>
99
100 <input type="radio" name="scan_type" id="scan_type_list" value="list">
101 <label for="scan_type_list">List feed</label>
102
103 <input type="radio" name="scan_type" id="scan_type_users" value="users">
104 <label for="scan_type_users">Selected users</label>
105
106 <input type="radio" name="scan_type" id="scan_type_you" value="you">
107 <label for="scan_type_you">Your profile</label>
108 </p>
109
110 <p>
111 Time range: <input type="range" min="1" max="60" value="7"> <label>7 days</label>
112 </p>
113
114 <p class="list-choice">
115 <label>Select list:</label>
116 <select name="scan_list"></select>
117 </p>
118
119 <div class="user-choice">
120 <input type="text" placeholder="Add user" autocomplete="off">
121 <div class="autocomplete"></div>
122 <div class="selected-users"></div>
123 </div>
124
125 <p>
126 <input type="submit" value="Start scan"> <progress></progress>
127 </p>
128 </form>
129
130 <p class="scan-info"></p>
131
132 <table class="scan-result">
133 <thead></thead>
134 <tbody></tbody>
135 </table>
136 </div>
137
138 <div id="like_stats_page">
139 <h2>Like statistics</h2>
140
141 <form>
142 <p>
143 Time range: <input type="range" min="1" max="60" value="7"> <label>7 days</label>
144 </p>
145
146 <p>
147 <input type="submit" value="Start scan"> <progress></progress>
148 </p>
149 </form>
150
151 <table class="scan-result given-likes">
152 <thead>
153 <tr><th colspan="3">❤️ Likes from you:</th></tr>
154 </thead>
155 <tbody></tbody>
156 </table>
157
158 <table class="scan-result received-likes">
159 <thead>
160 <tr><th colspan="3">💛 Likes on your posts:</th></tr>
161 </thead>
162 <tbody></tbody>
163 </table>
164 </div>
165
166 <div id="private_search_page">
167 <h2>Archive search *Beta*</h2>
168
169 <div class="timeline-search">
170 <form>
171 <p>
172 Fetch timeline posts: <input type="range" min="1" max="60" value="7"> <label>7 days</label>
173 </p>
174
175 <p>
176 <input type="submit" value="Fetch timeline"> <progress></progress>
177 </p>
178 </form>
179
180 <p class="archive-status"></p>
181
182 <hr>
183 </div>
184
185 <form class="search-form">
186 <p class="search">Search: <input type="text" class="search-query" autocomplete="off"></p>
187
188 <div class="search-collections">
189 <input type="radio" name="collection" value="likes" id="collection-likes" checked> <label for="collection-likes">Likes</label>
190 <input type="radio" name="collection" value="reposts" id="collection-reposts"> <label for="collection-reposts">Reposts</label>
191 <input type="radio" name="collection" value="quotes" id="collection-quotes"> <label for="collection-quotes">Quotes</label>
192 <input type="radio" name="collection" value="pins" id="collection-pins"> <label for="collection-pins">Pins</label>
193 </div>
194 </form>
195
196 <div class="results">
197 </div>
198 </div>
199
200 <script src="lib/purify.min.js"></script>
201 <script src="minisky.js"></script>
202 <script src="api.js"></script>
203 <script src="utils.js"></script>
204 <script src="rich_text_lite.js"></script>
205 <script src="models.js"></script>
206 <script src="menu.js"></script>
207 <script src="thread_page.js"></script>
208 <script src="posting_stats_page.js"></script>
209 <script src="like_stats_page.js"></script>
210 <script src="notifications_page.js"></script>
211 <script src="private_search_page.js"></script>
212 <script src="embed_component.js"></script>
213 <script src="post_component.js"></script>
214 <script src="skythread.js"></script>
215
216 <script>
217 init();
218 </script>
219</body>
220</html>