Tux

  • 43 Posts
  • 37 Comments
Joined 1 year ago
cake
Cake day: June 20th, 2023

help-circle









  • or this post I just did:

    Well, while we don’t overthrow the system, we still can use its infrastructure to subvert it, and that applies here on the internet as well.

    Today I’m going to teach you how to get the URL of videos from Reddit with audio and images.

    You can press the F12 key, this will open DevTools, and go to the console tab. Then paste this code:

    let array = document.getElementsByTagName("shreddit-player")[0].__packagedMedia.playbackMp4s.permutations;
    let url = array[array.length - 1].source.url;
    alert(url);
    

    If you want to create a shortcut to make things easier, just make a bookmark and paste this here in the address field:

    javascript:
    let array = document.getElementsByTagName("shreddit-player")[0].__packagedMedia.playbackMp4s.permutations;
    let url = array[array.length - 1].source.url;
    alert(url);
    

    This code opens an alert with the video’s URL for you to copy and use wherever you want.

    Like this: