Merge pull request #5 from MingyJ/master

Added bookmarklet code to README.md
This commit is contained in:
Ronnie 2020-09-22 20:07:36 -07:00 committed by GitHub
commit f28de5d193
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,12 @@ To download a video directly, use the API endpoint:
/api/download?url=SOME_URL
```
Create a bookmarklet, allowing one click downloads (From a PC):
```
javascript:(location.href="http://127.0.0.1:3000/fetch?url="+encodeURIComponent(location.href));
```
# Integrating with mobile
After you you have you server up, install this shortcut. Update the endpoint to your server address by editing the shortcut before running it.