updated README with bookmarklets and updated the favicon.
This commit is contained in:
parent
bb507c62b3
commit
c7ace294a9
2 changed files with 20 additions and 0 deletions
20
README.md
20
README.md
|
|
@ -102,6 +102,26 @@ Certain configuration values can be set via environment variables, using the `-e
|
|||
| YTP_PIP_IGNORE_UPDATES | Do not update the custom pip packages | `false` |
|
||||
| YTP_BASIC_MODE | Whether to run WebUI in basic mode | `false` |
|
||||
|
||||
## Bookmarklets and browser extensions
|
||||
|
||||
### For simple bookmarklets
|
||||
|
||||
```javascript
|
||||
javascript:(() => { const url = "https://ytptube.example.org"; const preset = "default"; const mUrl = new URL(url); mUrl.pathname = "/api/history"; fetch(mUrl, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ url: document.location.href, preset: preset }) }).then(res => alert(res.ok ? "URL sent!" : "Failed to send URL.")); })()
|
||||
```
|
||||
|
||||
Change the the variable `url` and `preset` variables to match your YTPTube instance and preset name.
|
||||
|
||||
### Browser Extensions Store
|
||||
|
||||
- For Firefox [Firefox](https://addons.mozilla.org/en-US/firefox/addon/ytptube-extension/)
|
||||
- For [Chrome/Chromium Browsers](https://chromewebstore.google.com/detail/ytptube-extension/kiepfnpeflemfokokgjiaelddchglfil)
|
||||
|
||||
### iOS Shortcuts
|
||||
|
||||
not yet available.
|
||||
|
||||
|
||||
## Running behind a reverse proxy
|
||||
|
||||
It's advisable to run YTPTube behind a reverse proxy, if authentication and/or HTTPS support are required.
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 4.2 KiB |
Loading…
Reference in a new issue