Adds a download button to Bluesky images and videos. Built off coredumperror's script with a few improvements.
< 脚本 Bluesky Image/Video Download Button 的反馈
Thank you for the solution, it made it quick to isolate the cause!
Thanks for the quick update!
Alternatively, it's also possible to check for the "processed" attribute when looking at the added nodes (at lines 83 and 89), as that attribute is added by the script when processing nodes and then never used again. I changed line 83 to the following. Similar thing for line 89, but with vid
instead of img
.
if (img && !img.hasAttribute("processed")) {
I think it may be a little more efficient? Though, I am no expert in Javascript…
Anyways, thank you for maintaining this script!
You are correct, it would reduce the size of the DOM queries. I'll swap to your suggestion.
I had originally gone with: if (downloadBtnParent.getElementsByClassName('download-button').length) return;
at L230 in order to do a quick fix and partially skip the double processing. Gonna do a couple other changes with that suggestion to try and reduce the script's load.
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
Suddenly stopped working but was able to get it work again by adding this to line 240: