48 行
1.6 KiB
Markdown
48 行
1.6 KiB
Markdown
# yt-linkifier
|
|
|
|
## Circumvents JewTube and BITCHute auto-embeds by turning them into links, thumbnails, and descriptions in a quote tag for use on web forums.
|
|
|
|
A little script made by Wrongthink (or BananaMulcher like how he's known as on The Crowhouse forum), with some adjustments done by me for portability sake.\
|
|
Also applied his adjustments to my adjustments as he specified in a reply.\
|
|
And also added 1 more adjustment, which is that it outputs files in the home directory regardless of where you execute it from.\
|
|
Forum thread in question: https://thecrowhouse.community/viewtopic.php?t=9430
|
|
|
|
To run, download this script into your home directory, then in the Terminal do this ONLY for the first time, no longer needed to do so afterwards:
|
|
|
|
```sh
|
|
chmod +x yt-linkifier
|
|
```
|
|
|
|
Then to run it:
|
|
|
|
```sh
|
|
~/yt-linkifier https://www.youtube.com/watch?v=27jKi-tlmwA
|
|
```
|
|
|
|
This will output a text file and thumbnails in the home directory which you can then use in for forum posts.\
|
|
You will only need to host the thumbnails somewhere, or attach them directly in threads/replies.
|
|
|
|
By the way, if you want to make it behave more like a normal command line program, add the following in your `.xinitrc` file (not sure for Wayland, but I don't care anyway).
|
|
|
|
```sh
|
|
export PATH=$PATH:~/.local/bin
|
|
```
|
|
|
|
Then create a `bin` folder in the `.local` folder if you haven't done so already.
|
|
|
|
```sh
|
|
mkdir -p ~/.local/bin
|
|
```
|
|
|
|
And move the file into that folder.
|
|
|
|
```sh
|
|
mv yt-linkifier ~/.local/bin
|
|
```
|
|
|
|
So now you can run it like this:
|
|
|
|
```sh
|
|
yt-linkifier https://www.youtube.com/watch?v=27jKi-tlmwA
|
|
```
|