Skip to content

Instantly share code, notes, and snippets.

@ReeganExE
Created January 3, 2020 16:44
Show Gist options
  • Select an option

  • Save ReeganExE/39137bcbb26a7fece28bd8e60eb8ded2 to your computer and use it in GitHub Desktop.

Select an option

Save ReeganExE/39137bcbb26a7fece28bd8e60eb8ded2 to your computer and use it in GitHub Desktop.

Revisions

  1. ReeganExE created this gist Jan 3, 2020.
    7 changes: 7 additions & 0 deletions fb-video.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    var body = new FormData();
    body.append('URLz', prompt('link:'));

    await fetch('https://fbdown.net/download.php', {
    method: 'post',
    body: body
    }).then(a => a.text()).then(a => new DOMParser().parseFromString(a, 'text/html').getElementById('hdlink').href);