by adeon · 3y ago · 0 comments
Sure enough I tried it and it works: https://old.reddit.com/r/MachineLearning/.json
TIL. I wonder if that's going away given the recent Reddit API access shenanigans.
Try making a bookmark whose url is this:
javascript:fetch(document.location.href.replace(/\/$/, '') + '.json').then(r => r.json()).then(j => {document.location.href = (j[0].data['children'][0].data.secure_media ? j[0].data['children'][0].data.secure_media.reddit_video.fallback_url : j[0].data['children'][0].data.crosspost_parent_list[0].secure_media.reddit_video.fallback_url)})
Then go to any reddit page where the main post is a video file, and click the bookmark!