Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/5qc/ytlink
- Owner: 5qc
- License: mit
- Created: 2021-12-11T01:15:04.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-13T16:42:19.000Z (almost 3 years ago)
- Last Synced: 2023-03-08T19:07:36.455Z (almost 2 years ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.