3 ms·
One of the footnotes mention that you can get a JSON version of a Reddit page by adding .json to the end of the URL. Sure enough I tried it and it works: https
by adeon 3y ago
One of the footnotes mention that you can get a JSON version of a Reddit page by adding .json to the end of the URL.
Sure enough I tried it and it works: https://old.reddit.com/r/MachineLearning/.json https://old.reddit.com/r/MachineLearning/.json
TIL. I wonder if that's going away given the recent Reddit API access shenanigans.
- knodi123 3y agoI found that trick a while back when trying to write a bookmarklet for downloading videos from reddit. I got it to work, but it downloads a version without audio... Since this is often superior, I stopped work and declared victory. 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!