Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added the new url param options to the readme
  • Loading branch information
Gratenes authored Jun 15, 2023
1 parent bfcec29 commit fab6aef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ npx wrangler publish

### Example:
```js
const url = 'example.url.example/?url=Link.m3u8&referer=url.example'
const url = 'https://example.url.example/?url=Link.m3u8&origin=url.example'

// If either your url or link has parameter's, encode via encodeURIComponent(link)
const encodedUrl = `example.url.example/?url=${encodeURIComponent(Link.m3u8)}&referer=${encodeURIComponent(url.example)}`
const encodedUrl = `https://m3u8.proxy.example/
?url=${encodeURIComponent("https://thisdomain.works/file.m3u8")}
&referer=${encodeURIComponent("https://thisdomain.works")}
&origin=${encodeURIComponent("https://thisdomain.works")}
`
```

> #### Cloudflare Workers Docs: https://developers.cloudflare.com/workers/get-started/guide/

0 comments on commit fab6aef

Please sign in to comment.