Lazy Embedded Video

Lazy load embedded videos from Youtube/Dailymotion/Vimeo/Rutube/Twitch/Coub

< Feedback on Lazy Embedded Video

Review: OK - script works, but has bugs

§
Posted: 2024-05-16
Edited: 2024-05-16

Doesn't detect the video on
https://greasyfork.org/en/scripts/481430

If we could hide the channel's name, that would be great too.

§
Posted: 2024-05-16

Allow autoplay also whitelists the video (after played once), so the video is no longer lazyloaded by the script. Shouldn't autoplay only autoplay the videos, instead of also whitelisting them?

ColomboAuthor
§
Posted: 2024-05-16

Hello I can't see the video you're pointing at (wrong link?).
I'm not removing the channel's name but if you want to do it for yourself you can edit the code line 128 and add display:none; to #author styles.

About the Allow autoplay option like its name suggests allows video with autoplay attribute to start playing when you visit a page.
For example in this page https://www.w3schools.com/html/tryit.asp?filename=tryhtml_youtubeiframe_autoplay
if you have the option enabled the video won't be replaced by the script therefore allowing it to play (although you also need to enable autoplay in your browser settings).

§
Posted: 2024-05-16
Edited: 2024-05-16

This is the right link, just click on "How to Install scripts? (Click here)".

I feel like that should be renamed to something like "Whitelist this video" instead of "autoplay"
I don't like that autoplay whitelists the video, isn't there a way to autoplay only after the script play button is clicked and without withlisting the video?
If I reload the page or open it again in the future, I wouldn't want the video to load normally

ColomboAuthor
§
Posted: 2024-05-16

The video is detected on my end, maybe you've whitelisted the site, you can try clearing the whitelist to see if it changes.
Or maybe greasyfork is blacklisted in your tampermonkeys settings.

Allow Autoplay has nothing to do with whitelist, it's a global setting that applies to any video with an autoplay attribute on all websites.
There's no option to whitelist a single video in this script.

§
Posted: 2024-05-16
Edited: 2024-05-16

I am not sure what is causing that issue, but I haven't whitelisted the site. It worked on a brand new Edge profile, but not on the configured profile that I use.

For some reason, it definitely whitelists the single video. After I select autoplay, and play the video once, if I reload the page the script no longer works on that single video.

What I expect of a feature called autoplay is that, the script will always keep lazyloading all YT videos on page load, then after I click on the script video, the normal YT player will load, then since autoplay was selected, the video will auto-play in the YT player.

Post reply

Sign in to post a reply.