Adds a download button to Bluesky images and videos. Built off coredumperror's script with a few improvements.
These are versions of this script where the code was updated. Show all versions.
FIXED: Template settings button would be deleted in specific circumstances.
Used Google's Gemini to re-arrange when data is processed to try and reduce API calls and overall CPU/RAM consumption, add a helpful box during template editing to give info on what you can do, and, in general, make the code more efficient and readable. I've done thorough testing, but I'd appreciate feedback as soon as issues are found.
Swapped method to get current timestamp and use API call to get the upload timestamp to make it work for all languages, please report any bugs!
Attempt to make it work for more than just English language.
Added post timestamp as an option for filename template.
Added alt/title text to the template
The attempt of reducing workload has backfired, fixed stubbed images not properly having download button.
Use a different method to stop double processing and reduce script workload.
Fixed duplicate download buttons causing it to enlarge image instead of working properly.
remove unused code and replace depricated code
let -> const
Make it mobile friendly (bye bye GM_download).
Fix download not grabbing the right user's information again
Revert the download changes to make it work properly on all browsers. Save-As dialog box respects browser settings again.
Rewrite download function again to force Save-As dialog to appear on Chromium browsers.
Grab extension from the blob (fix Chrome) and rewrite download to use built in method for Tamper/Violentmonkey.
Put the script version in the template button to make it easier to see the version.
Also did more cleanup and removed the console.log I forgot to get rid of.
console.log
Code cleanup (used Gemini)
Dropping JQuery for raw JS
Bsky changes their settings page, so the on-the-fly-template-change field had to be fixed.
Also minor fix to filenaming since it would append the <%username> fix when it wasn't necessary.
<%username>
Reduce the overall code size by combining the image and video codes, reworked how post ID is found, and add coredumperror as an author, because it was their script first and foremost. Please report any bugs, share a link to the post and describe how it happened if possible!
Returning <%username> since I believe I fixed the filenames being truncated by an invalid file extension and also setting it as the new default.
return default back to what I set
Completely redesign the MO setup to be better at adapting to all pages.Move the "Filenaming" settings to the actual "Settings" page at the top.
potentially solve it
Attempt to keep it from breaking, still need to fix for Discovery and other lists/tabs.
Potentially future-proof
added the-nelsonator's changes