Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/5qc/ytlink

dumb js thing i made that allows you to make simple yt links
https://github.com/5qc/ytlink

Last synced: about 11 hours ago
JSON representation

dumb js thing i made that allows you to make simple yt links

Awesome Lists containing this project

README

        

# YTlink
**YTlink** is a JavaScript "plugin" that allows you to make a simple YouTube link using ``.

## Examples
- `` will produce [mrbeast6000](//youtube.com/user/mrbeast6000).
- `` will produce [UCbtGxM9x71G5695-JENj50Q](//youtube.com/channel/UCbtGxM9x71G5695-JENj50Q).
- `` will produce [Danny100](//youtube.com/c/Danny100).
- `` will produce [YouTube](//youtube.com/user/YouTube/about).
- `` will produce [jNQXAC9IVRw](//youtube.com/watch?v=jNQXAC9IVRw).

### You can also do aliases:
- `The MrBeast Channel` will produce [The MrBeast Channel](//youtube.com/user/mrbeast6000)

## Components
### User
The **user** attribute is used for YouTube channel URLs that use */user/*.

### Channel
The **channel** attribute is used for YouTube channel URLs that use */channel/*.

### C
The **c** attribute is used for YouTube channel URLs that use */c/*.

### Section
The **section** attribute is used to go to a specific section on the YouTube channel. The only valid values are:
- `videos`/`video`
- `playlists`/`playlist`
- `community`
- `discussion`
- `store`
- `channels`/`channel`
- `about`

This is not required in the channel URLs. Not defining the section will just go to the channel homepage.

### Video
The **video** attribute is used for video URLs. Attempting to define both **video** and **user**/**channel**/**c** will result in an error.