Bluesky Image Download Button

Takes coredumperror's script and removes the constant 300ms checks and adds an in-page way to adjust the filename_template.

Versione datata 21/10/2024. Vedi la nuova versione l'ultima versione.

Autore
KanashiiWolf e the-nelsonator
Valutazione
0 0 0
Versione
1.1
Creato il
18/10/2024
Aggiornato il
21/10/2024
Dimensione
22,3 KB
Licenza
MIT
Applica a

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

The main two changes:
The filename template can be altered on the fly on the page (look at the header and click "Filenaming" then press enter to submit the changes).
Changed from a full page scan every 300ms to using MutationObservers to reduce redundant scans and CPU load.

/** Edit filename_template to change the file name format:
*
* <%uname> Bluesky short username eg: oh8
* <%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>_p<%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.
*/

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元