FYTE /Fast YouTube Embedded/ Player

Hugely improves load speed of pages with lots of embedded Youtube videos by instantly showing clickable and immediately accessible placeholders, then the thumbnails are loaded in background. Optionally a fast simple HTML5 direct playback (720p max) can be selected if available for the video.

< 脚本 FYTE /Fast YouTube Embedded/ Player 的反馈

评价:一般 - 脚本能用,但还有一些问题

§
发布于:2026-03-18
编辑于:2026-03-18

Open embedding in new tab link is broken

Problem

It adds a button to open a video in a new tab (if there's a block like "log in to confirm you're not a bot") – it's great, that what I downloaded this script for! But the link is broken. It just copies the link in the embedding that not always can be played in other tab.

Example

Embeddings in https://mewgenics.wiki.gg/wiki/Eatin%27_Rats has buttons with links like https://www.youtube-nocookie.com/watch?v=id&autoplay=1 that are not correct.

The solution

replace

fyte.srcWatchFixed =
  fyte.srcEmbedFixed.replace('/embed/', '/watch?v=').replace(/(\?.*?)\?/, '$1&');

with

fyte.srcWatchFixed = 'https://www.youtube.com/watch?v=' + id;

  // If original parametrs has parametrs like start/t= (time), add them
  const timeMatch = srcFixed.match(/[?&](?:start|t)=(\d+)/);
  if (timeMatch) {
    fyte.srcWatchFixed += '&t=' + timeMatch[1] + 's';
  }
woxxom作者
§
发布于:2026-03-18

I don't understand, because the script doesn't add any buttons by design and anyway the current code doesn't remove the existing parameters from the URL.

§
发布于:2026-03-27
编辑于:2026-03-27

Without this script:

With this script:

Link in this clickable text is broken by default

the current code doesn't remove the existing parameters from the URL.

Exactly, that make it broken, becouse some of parametrs are not meant to be opened out of embedding

woxxom作者
§
发布于:2026-03-27

I understand which link is the problem, but I'm not sure the proposed solution is correct, because it looks like simply dropping -nocookie from the domain name is a better fix. Could you try it?

§
发布于:2026-03-27

My solution is to just replace link with standard one, removing any junk that may break the link (except time params, afaik it's the only params that can be used in new link)

§
发布于:2026-03-27
编辑于:2026-03-27

I understand which link is the problem, but I'm not sure the proposed solution is correct, because it looks like simply dropping -nocookie from the domain name is a better fix. Could you try it?

For this link – maybe, but why even preserve original link? What if other embedding would have some other link-breaking things?

woxxom作者
§
发布于:2026-03-27

Thing is I don't know which parameters may be used, which is why I don't assume that the only meaningful one is start|t.

发布留言

登录以发布留言。