From d5821188d894c80c7a852414384efe84c9318277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20M=2E=20Sapka?= Date: Thu, 2 Feb 2023 16:00:05 +0100 Subject: feat: article for 2023-02-02 --- .../diagnostics.png | Bin 0 -> 579103 bytes .../this-site-no-longer-spies-for-youtube/index.md | 67 +++++++++++++++++++++ .../index.md~ | 10 +++ .../opportunities.png | Bin 0 -> 195309 bytes 4 files changed, 77 insertions(+) create mode 100644 content/2023/this-site-no-longer-spies-for-youtube/diagnostics.png create mode 100644 content/2023/this-site-no-longer-spies-for-youtube/index.md create mode 100644 content/2023/this-site-no-longer-spies-for-youtube/index.md~ create mode 100644 content/2023/this-site-no-longer-spies-for-youtube/opportunities.png (limited to 'content/2023/this-site-no-longer-spies-for-youtube') diff --git a/content/2023/this-site-no-longer-spies-for-youtube/diagnostics.png b/content/2023/this-site-no-longer-spies-for-youtube/diagnostics.png new file mode 100644 index 00000000..d72b1aed Binary files /dev/null and b/content/2023/this-site-no-longer-spies-for-youtube/diagnostics.png differ diff --git a/content/2023/this-site-no-longer-spies-for-youtube/index.md b/content/2023/this-site-no-longer-spies-for-youtube/index.md new file mode 100644 index 00000000..0d52aa2b --- /dev/null +++ b/content/2023/this-site-no-longer-spies-for-youtube/index.md @@ -0,0 +1,67 @@ +--- +title: "This Site No Longer Spies for Youtube" +category: "blog" +abstract: +date: 2023-02-02T14:58:42+01:00 +year: +draft: false +tags: [] +--- +This site no longer spies for google + +Say what you will about Youtube; it is the de facto webpage for video content. Unfortunately, there is much to say, primarily negative, but more on this later. Today I want to make this blog a bit better. + +Let's use [Google](https://pagespeed.web.dev/report?url=https%3A%2F%2Fmichal.sapka.me%2F2023%2Fcradle-of-filth-her-ghost-in-the-fog%2F) to analyze the performance of [one of my recent posts](http://localhost:1313/2023/cradle-of-filth-her-ghost-in-the-fog/). It's terrible. Not as awful as it would have been if I used a lot of JS, but it is terrible, nevertheless. + +Here are the findings. Notice a pattern? + +{{< imgproc "opportunities.png" Resize "500x" "Opportunities">}} + +{{< imgproc "diagnostics.png" Resize "500x" "Diagnostics">}} + +Yeah. I embed YouTube videos, and even Google says it's a bad idea. What adds insult to injury is [Privacy Badger](https://privacybadger.org) screaming at me on my own page. So yup, I have joined the botnet and spied for Google. + +There are two solutions: pretend that YouTube doesn't exist or fix it. Let's fix it. The idea: use hyperlinks with self-hosted thumbnails. Sounds simple. And it is simple. + +Step 1 - get all Youtube embeds. This site is powered by [Hugo](https://gohugo.io/), and all three embeds are done via a `youtube` shortcode. So, on posts, I add a + +``` + +``` + +Let's use GNU to get all video ids! + +``` +grep -r "