Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix high quality images tweak

bluesky stopped adding the "@jpeg" section to cdn image urls, because of this the replace code of the high quality images tweak broke, however the entire "@jpeg" and "@png" stuff still very much exists, so editing the code to just add "@png" to images regardless on if the jpeg part exists fixes it instantly, i dont believe doing it this way causes any issues as i ran into no problems with this approach on my end, but do lemme know if theres any problems with this

authored by

daniela.lol and committed by
Tangled
52a398f5 504e2fe1

+3 -3
+1 -1
src/screens/Settings/RunesSettings.tsx
··· 1318 1318 </Toggle.Item> 1319 1319 <Admonition type="info" style={[a.flex_1]}> 1320 1320 <Trans> 1321 - Images will be served as PNG instead of JPEG. Images will take 1321 + Images will be served as PNG instead of WEBP. Images will take 1322 1322 longer to load and use more bandwidth. 1323 1323 </Trans> 1324 1324 </Admonition>
+2 -2
src/state/preferences/high-quality-images.tsx
··· 50 50 function modifyHighQualityImage(src: string) { 51 51 try { 52 52 const url = new URL(src) 53 - if (url.hostname === 'cdn.bsky.app' && url.pathname.endsWith('@jpeg')) { 54 - url.pathname = url.pathname.replace(/@jpeg$/, '@png') 53 + if (url.hostname === 'cdn.bsky.app') { 54 + url.pathname = url.pathname += "@png" 55 55 return url.toString() 56 56 } 57 57 } catch {