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