El Fubu

Welcome to a low in KB page (Except for Video Thumbnails)

Removing JavaScript 3: Not adding it for YouTube - 2025-06-09 21:52:31

Still alive.

Today: Removing YouTube embedding. I saw something cool in the AAMSX web, so I decided to copy that. The idea was to use Lite YouTube, however… I got many errors regarding the CSP (Content Security Policy), as it is set to null and it was, again, including JavaScript. So fuck it.

So instead I did this Hugo shortcode:

{{- $videoId := trim (.Get 0) " " -}}

<youtube-thumb videoid="{{ $videoId }}">
    <a href="https://www.youtube.com/watch?v={{ $videoId }}" target="_blank"><img
        src="https://i.ytimg.com/vi/{{ $videoId }}/hqdefault.jpg" alt="YouTube
        Link" style="border: #FFFFFF 4px double;"></a>
<p><center><small>Click to watch in YouTube (New tab)</small></center></p>
</youtube-thumb>

And if you put this in layouts/shortcodes/youtube-thumb.html, you’ll be able to use it as {{< youtube-thumb VIDEO_ID >}} and you’ll get the video thumbnail in JPG and be able to click on it to watch it. The target="_blank" makes it to open a new tab. I kind of like it. It’s less functional compared to lite youtube, but it works and it does not add JavaScript on our side.

Yuji Toriyama - Maze - 2024-12-19 22:38:01

No comments needed

YouTube
        Link

Click to watch in YouTube (New tab)

Venjent - Create machines - 2024-12-18 20:59:34

CREATE MACHINES CREATE MACHINES CREATE MACHINES CREATE MACHINES CREATE MACHINES CREATE MACHINES CREATE MACHINES CREATE MACHINES

YouTube
        Link

Click to watch in YouTube (New tab)

Phantasia - Future Angels - 2024-12-13 19:14:11

Found Phantasia by chance. I wanted to buy the CD. Hard to find a 1981, right? It looked pretty obscure.

YouTube
        Link

Click to watch in YouTube (New tab)

Then I read the description:

This project is a heartfelt tribute to the golden age of Japanese jazz fusion. Through storytelling, music and AI, we aim to reimagine a lost era and evoke the timeless beauty of this genre.

Fixing a Catit Pixie Smart Feeder that bumps and gets stuck constantly - 2024-11-28 20:37:39

One of my two smart feeders (the newest) was bumping and having problems putting the feed to my cats. After a lot of time, I went up online and found a Reddit post that had very valuable information.

Some users had good luck removing the rubber bands from the spinning part of the feeder, but the user Set-Condition-5 wrote the following:

Team, while removing the rubber guards helped, it turned out our jamming
problem was caused by the screw that connects the white main gear you see when
you remove the top housing ( the half with the food) to the motor being
completely loose. If you remove the small white cap on the gear you can access
the screw and tighten. This stops the gear from raising up which was causing our
jamming.

This screw is this one (click on the image to get a color one ;)): Screw for the dispenser