Bluesky Image/Video Download Button

Adds a download button to Bluesky images and videos. Built off coredumperror's script with a few improvements.

질문, 리뷰하거나, 이 스크립트를 신고하세요.
개발자
KanashiiWolf, the-nelsonator
일일 설치수
3
총 설치수
548
평점
10 0 0
버전
1.8.1
생성
2024-10-18
갱신
2024-12-13
Size
10.3KB
라이선스
MIT
동작 사이트

IMPORTANT NOTE: the script does not work with Greasemonkey, please use Tampermonkey or Violentmonkey.
Also, if you wish to have a Save As dialog box pop up, you need to adjust that in your own browser.

This script is a modification to coredumperror's Bluesky Image Downloader: https://greasyfork.org/en/scripts/495794-bluesky-image-downloader

The main three changes:
1. The filename template can be altered on the fly on the page (look at the Bluesky settings page and click "Filenaming" then press enter to submit the changes).
2. Changed from a full page scan every 300ms to using MutationObservers to reduce redundant scans and CPU load.
3. Adds video support.

/** Edit filename_template to change the file name format:
*
* <%uname> Bluesky short username eg: oh8
* <%username> Bluesky full username eg: oh8.bsky.social
* <%post_id> Post ID eg: 3krmccyl4722w
* <%timestamp> Current timestamp eg: 1550557810891
* <%img_num> Image number within post eg: 0, 1, 2, or 3
*
* default: "@<%uname>-<%post_id>-<%img_num>"
* result: "oh8 3krmccyl4722w_p0.jpg"
* Could end in .png or any other image file extension,
* as the script downloads the original image from Bluesky's API.
*
* example: "<%username> <%timestamp> <%post_id>_p<%image_num>"
* result: "oh8.bsky.social 1716298367 3krmccyl4722w_p1.jpg"
* This will make it so the images are sorted in the order in
* which you downloaded them, instead of the order in which
* they were posted.
*/