Setting YouTube Redirect Type to only embedded breaks youtube.com
Here is what I have set for youtube:

I get this when I go to youtube.com, same issue with any frontend:

Works again after I disable youtube redirects.
It's not happening to me. Maybe it got fixed along the way but we didn't release it yet.
I have a similar issue but the page just ends up mostly empty, just some very basic YT UI elements. The browser console is filled with errors
Piped:
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/cssbin/www-main-desktop-watch-page-skeleton-2x.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Some cookies are misusing the “SameSite“ attribute, so it won’t work as expected 2
The resource from “https://piped.kavin.rocks/s/player/0d77e7db/www-player.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/jsbin/scheduler.vflset/scheduler.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/cssbin/www-onepick-2x.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/jsbin/intersection-observer.min.vflset/intersection-observer.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/jsbin/www-i18n-constants-en_GB.vflset/www-i18n-constants.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/jsbin/webcomponents-sd.vflset/webcomponents-sd.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/cssbin/www-main-desktop-player-skeleton-2x.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/jsbin/desktop_polymer.vflset/desktop_polymer.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/jsbin/network.vflset/network.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/jsbin/custom-elements-es5-adapter.vflset/custom-elements-es5-adapter.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/player/0d77e7db/player_ias.vflset/en_GB/base.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/jsbin/web-animations-next-lite.min.vflset/web-animations-next-lite.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/jsbin/spf.vflset/spf.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Loading failed for the <script> with source “https://www.youtube.com/s/desktop/a2197efa/jsbin/web-animations-next-lite.min.vflset/web-animations-next-lite.min.js”. watch:17:1
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/jsbin/custom-elements-es5-adapter.vflset/custom-elements-es5-adapter.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Loading failed for the <script> with source “https://www.youtube.com/s/desktop/a2197efa/jsbin/custom-elements-es5-adapter.vflset/custom-elements-es5-adapter.js”. watch:17:1
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/jsbin/webcomponents-sd.vflset/webcomponents-sd.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Loading failed for the <script> with source “https://www.youtube.com/s/desktop/a2197efa/jsbin/webcomponents-sd.vflset/webcomponents-sd.js”. watch:17:1
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/jsbin/intersection-observer.min.vflset/intersection-observer.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Loading failed for the <script> with source “https://www.youtube.com/s/desktop/a2197efa/jsbin/intersection-observer.min.vflset/intersection-observer.min.js”. watch:17:1
Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content. node.js:393
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/jsbin/scheduler.vflset/scheduler.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Loading failed for the <script> with source “https://www.youtube.com/s/desktop/a2197efa/jsbin/scheduler.vflset/scheduler.js”. watch:20:1
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/jsbin/www-i18n-constants-en_GB.vflset/www-i18n-constants.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Loading failed for the <script> with source “https://www.youtube.com/s/desktop/a2197efa/jsbin/www-i18n-constants-en_GB.vflset/www-i18n-constants.js”. watch:20:1
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/cssbin/www-main-desktop-player-skeleton-2x.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/player/0d77e7db/www-player.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/cssbin/www-main-desktop-watch-page-skeleton-2x.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/cssbin/www-onepick-2x.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Source map error: Error: request failed with status 404
Resource URL: https://www.youtube.com/watch?v=Fki5GjuIP-E
Source Map URL: kevlar_global_styles_sass.css.map
The resource from “https://piped.kavin.rocks/s/player/0d77e7db/player_ias.vflset/en_GB/base.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Loading failed for the <script> with source “https://www.youtube.com/s/player/0d77e7db/player_ias.vflset/en_GB/base.js”. watch:25:1
Source map error: Error: request failed with status 404
Resource URL: https://www.youtube.com/watch?v=Fki5GjuIP-E
Source Map URL: masthead_custom_styles_sass.css.map
Source map error: Error: request failed with status 404
Resource URL: https://www.youtube.com/watch?v=Fki5GjuIP-E
Source Map URL: global_styles_sass.css.map
Source map error: Error: request failed with status 404
Resource URL: https://www.youtube.com/watch?v=Fki5GjuIP-E
Source Map URL: masthead_shell_styles_sass.css.map
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/cssbin/www-main-desktop-player-skeleton-2x.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/player/0d77e7db/www-player.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/cssbin/www-onepick-2x.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/cssbin/www-main-desktop-watch-page-skeleton-2x.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/jsbin/spf.vflset/spf.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Source map error: Error: request failed with status 404
Resource URL: https://www.youtube.com/watch?v=Fki5GjuIP-E
Source Map URL: searchbox_sass.css.map
Loading failed for the <script> with source “https://www.youtube.com/s/desktop/a2197efa/jsbin/spf.vflset/spf.js”. watch:27:1
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/jsbin/network.vflset/network.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Loading failed for the <script> with source “https://www.youtube.com/s/desktop/a2197efa/jsbin/network.vflset/network.js”. watch:28:1
The resource from “https://piped.kavin.rocks/s/desktop/a2197efa/jsbin/desktop_polymer.vflset/desktop_polymer.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Loading failed for the <script> with source “https://www.youtube.com/s/desktop/a2197efa/jsbin/desktop_polymer.vflset/desktop_polymer.js”. watch:28:1
uncaught exception: TIMEOUT
uncaught exception: TIMEOUT content.js:1:44188
The resource at “https://i.ytimg.com/generate_204” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. watch
The resource at “https://r4---sn-u2oxu-f5fek.googlevideo.com/generate_204” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. watch
The resource at “https://r4---sn-u2oxu-f5fek.googlevideo.com/generate_204?conn2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. watch
Invidious:
Some cookies are misusing the “SameSite“ attribute, so it won’t work as expected 2
Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content. node.js:393
The resource from “https://invidious.kavin.rocks/feed/popular” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://invidious.kavin.rocks/feed/popular” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). 11 watch
Loading failed for the <script> with source “https://www.youtube.com/s/desktop/a2197efa/jsbin/web-animations-next-lite.min.vflset/web-animations-next-lite.min.js”. watch:17:1
The resource from “https://invidious.kavin.rocks/feed/popular” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). 2 watch
uncaught exception: TIMEOUT
uncaught exception: TIMEOUT content.js:1:44188
The resource at “https://i.ytimg.com/generate_204” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. watch
The resource at “https://www.youtube.com/s/desktop/a2197efa/jsbin/desktop_polymer.vflset/desktop_polymer.js” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. watch
The resource at “https://r4---sn-u2oxu-f5fek.googlevideo.com/generate_204” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. watch
The resource at “https://r4---sn-u2oxu-f5fek.googlevideo.com/generate_204?conn2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. watch
The resource from “https://invidious.kavin.rocks/feed/popular” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Loading failed for the <script> with source “https://www.youtube.com/s/desktop/a2197efa/jsbin/custom-elements-es5-adapter.vflset/custom-elements-es5-adapter.js”. watch:17:1
The resource from “https://invidious.kavin.rocks/feed/popular” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Loading failed for the <script> with source “https://www.youtube.com/s/desktop/a2197efa/jsbin/webcomponents-sd.vflset/webcomponents-sd.js”. watch:17:1
The resource from “https://invidious.kavin.rocks/feed/popular” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Loading failed for the <script> with source “https://www.youtube.com/s/desktop/a2197efa/jsbin/intersection-observer.min.vflset/intersection-observer.min.js”. watch:17:1
The resource from “https://invidious.kavin.rocks/feed/popular” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Loading failed for the <script> with source “https://www.youtube.com/s/desktop/a2197efa/jsbin/scheduler.vflset/scheduler.js”. watch:20:1
The resource from “https://invidious.kavin.rocks/feed/popular” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Loading failed for the <script> with source “https://www.youtube.com/s/desktop/a2197efa/jsbin/www-i18n-constants-en_GB.vflset/www-i18n-constants.js”. watch:20:1
Source map error: Error: request failed with status 404
Resource URL: https://www.youtube.com/watch?v=Fki5GjuIP-E
Source Map URL: kevlar_global_styles_sass.css.map
Source map error: Error: request failed with status 404
Resource URL: https://www.youtube.com/watch?v=Fki5GjuIP-E
Source Map URL: masthead_shell_styles_sass.css.map
Source map error: Error: request failed with status 404
Resource URL: https://www.youtube.com/watch?v=Fki5GjuIP-E
Source Map URL: global_styles_sass.css.map
Source map error: Error: request failed with status 404
Resource URL: https://www.youtube.com/watch?v=Fki5GjuIP-E
Source Map URL: masthead_custom_styles_sass.css.map
Source map error: Error: request failed with status 404
Resource URL: https://www.youtube.com/watch?v=Fki5GjuIP-E
Source Map URL: searchbox_sass.css.map
The resource from “https://invidious.kavin.rocks/feed/popular” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). 4 watch
The resource from “https://invidious.kavin.rocks/feed/popular” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
The resource from “https://invidious.kavin.rocks/feed/popular” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). 4 watch
Loading failed for the <script> with source “https://www.youtube.com/s/player/0d77e7db/player_ias.vflset/en_GB/base.js”. watch:25:1
The resource from “https://invidious.kavin.rocks/feed/popular” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Loading failed for the <script> with source “https://www.youtube.com/s/desktop/a2197efa/jsbin/spf.vflset/spf.js”. watch:27:1
The resource from “https://invidious.kavin.rocks/feed/popular” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Loading failed for the <script> with source “https://www.youtube.com/s/desktop/a2197efa/jsbin/network.vflset/network.js”. watch:28:1
The resource from “https://invidious.kavin.rocks/feed/popular” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). watch
Loading failed for the <script> with source “https://www.youtube.com/s/desktop/a2197efa/jsbin/desktop_polymer.vflset/desktop_polymer.js”. watch:28:1
I'm using Firefox 104.0b4 but also reproduced this behavior with Vivaldi 5.3.2679.70. I got the same behavior initially as the original issue reporter when hitting F5 but refreshing without cache gave the same effect as Firefox where the page is mostly blank.

I don't know a lot about extensions but I have a feeling this is where the issue is: https://github.com/libredirect/libredirect/blame/b7859ac2a4f78f816cee24260dedd2e23c1adf68/src/assets/javascripts/youtube/youtube.js#L203
It got refactored as part of this commit https://github.com/libredirect/libredirect/commit/2a0596f08fb54e2faef4bcb4548a28f5837fc067#diff-b0213f0fbd87e7fec7c8e4db0854ce29fcf63e8005264dc74f01107a5dd40130 so I thought I'd build against master and see what happens.
I followed the instructions to build the zip, created my hypothetical 2.2.2 version and YouTube now works... because the extension is completely broken. It doesn't redirect embedded YouTube at all (even after resetting extension settings).
@ManeraKai if you can share a working dev extension zip I'd be happy to test it out.
I followed the instructions to build the zip, created my hypothetical 2.2.2 version and YouTube now works... because the extension is completely broken. It doesn't redirect embedded YouTube at all (even after resetting extension settings).
xD. I think because you didn't run npm run instances to fetch the instances first before building
xD. I think because you didn't run
npm run instancesto fetch the instances first before building
Yeah well that should be in the instructions then lol. This seems to have the same issues as the version I built:
- only embed doesn't work, seemingly has no effect
- only not embedded works as expected
- both only redirects YouTube, not embedded
I think I should remove the "only embedded" option all together.