Shows pictures and some videos right after the link, loads and expands comment threads.
< 腳本Reddit expand media and comments的回應
Thanks.
, meta[property="og:image"]
to the end of its q
.Since I don't have examples of those images, could you verify this updated script works?
Now there's no need for r
rule like \.com/.+
for the sole purpose of indicating that something should follow the part matched by u
.
I've published the updated script, everything seems to work.
Thanks for adding those rules. It looks like they all work except the pasteall.org one. The problem with that one is that the tag it finds basically looks like <img src="/media/image.jpg">
, and since the script is still running on reddit.com, when you use el.src
(line 373) to get the URL, it changes to reddit.com/media/image.jpg
. In my work-around function, I just got the exact string of the src attribute and prefixed it with "pasteall.org".
If you want to test, I made a reddit post with some image links I found in my history:
Thanks. That fix was wrong, 0.4.8 is now using the proper fix via <base>
element.
Excellent! Confirmed everything is working properly now. Much appreciated :)
Found another image host called postimg.cc that uses og:image meta. Just need to add '//postimg.cc/'
to the rule with META_OG_IMG
and no xhr, and of course add a @connect for postimg.cc
. I updated the reddit sandbox post, so you can test it.
Thanks, added.
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
Hi, thanks for making this script! Just wondering if you accept new rules? I added imgshare.io, freeimage.host, pasteall.org, and also added imgur links that are just 7 alphanumeric characters with no file extension. Most of them use that og:image meta property attribute.
Also, had to add these @connects:
Note: freeimage.host uses iili.io for the images, and it seemed they were both needed.
Sorry, I don't have any test links, but I often find these random image hosting sites on /r/Daily3D (a subreddit for 3D modeling prompts), and /r/blenderhelp (subreddit for help with Blender)