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:;
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_users" value="users" disabled>
101 <label for="scan_type_users">Selected users (coming soon)</label>
102
103 <input type="radio" name="scan_type" id="scan_type_you" value="you">
104 <label for="scan_type_you">Your profile</label>
105 </p>
106
107 <p>
108 Time range: <input type="range" min="1" max="60" value="7"> <label>7 days</label>
109 </p>
110
111 <p>
112 <input type="submit" value="Start scan"> <progress></progress>
113 </p>
114 </form>
115
116 <p class="scan-info"></p>
117
118 <table class="scan-result">
119 <thead>
120 </thead>
121 <tbody>
122 </tbody>
123 </table>
124 </div>
125
126 <div id="like_stats_page">
127 <h2>Like statistics</h2>
128
129 <form>
130 <p>
131 Time range: <input type="range" min="1" max="60" value="7"> <label>7 days</label>
132 </p>
133
134 <p>
135 <input type="submit" value="Start scan"> <progress></progress>
136 </p>
137 </form>
138
139 <table class="scan-result given-likes">
140 <thead>
141 <tr><th colspan="3">❤️ Likes from you:</th></tr>
142 </thead>
143 <tbody></tbody>
144 </table>
145
146 <table class="scan-result received-likes">
147 <thead>
148 <tr><th colspan="3">💛 Likes on your posts:</th></tr>
149 </thead>
150 <tbody></tbody>
151 </table>
152 </div>
153
154 <div id="private_search_page">
155 <h2>Archive search *Beta*</h2>
156
157 <form>
158 <p>
159 Fetch timeline posts: <input type="range" min="1" max="60" value="7"> <label>7 days</label>
160 </p>
161
162 <p>
163 <input type="submit" value="Fetch timeline"> <progress></progress>
164 </p>
165 </form>
166
167 <p class="archive-status"></p>
168
169 <hr>
170
171 <p class="search">Search: <input type="text" class="search-query"></p>
172
173 <div class="results">
174 </div>
175 </div>
176
177 <script src="lib/purify.min.js"></script>
178 <script src="minisky.js"></script>
179 <script src="api.js"></script>
180 <script src="utils.js"></script>
181 <script src="rich_text_lite.js"></script>
182 <script src="models.js"></script>
183 <script src="menu.js"></script>
184 <script src="thread_page.js"></script>
185 <script src="posting_stats_page.js"></script>
186 <script src="like_stats_page.js"></script>
187 <script src="notifications_page.js"></script>
188 <script src="private_search_page.js"></script>
189 <script src="embed_component.js"></script>
190 <script src="post_component.js"></script>
191 <script src="skythread.js"></script>
192
193 <script>
194 init();
195 </script>
196</body>
197</html>