Skip to content

Add YouTube Disable Autoplaying #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lumynou5
Copy link
Contributor

The userscript prevents playlists, shorts, and hovered videos on the home page from autoplaying on YouTube.

No screenshots because screenshots cannot tell the feature.

@adamlui
Copy link
Member

adamlui commented Aug 13, 2025

Can you add a YouTube icon meta to the userscript?

@lumynou5
Copy link
Contributor Author

I think the manager has icons for the sites?

圖片

I don't use icons because they're duplicated (in this case.)

@adamlui
Copy link
Member

adamlui commented Aug 13, 2025

Unfortunately not all managers (like TM) display icon w/o meta:

image

You could fix by adding:

// @icon         https://www.google.com/s2/favicons?sz=48&domain=youtube.com
// @icon64       https://www.google.com/s2/favicons?sz=64&domain=youtube.com

@lumynou5
Copy link
Contributor Author

Fine. I think requesting decorative small images doesn't cost much.

By the way, why not to use the original URL in the HTML, i.e. https://www.youtube.com/s/desktop/8a664e3f/img/logos/favicon_48x48.png? Though it doesn't have 64x64, but I suppose the Google cached one also gets 64x64 by scaling?

@adamlui
Copy link
Member

adamlui commented Aug 13, 2025

I think google api relies on dimension variants to optimize the icons returned, also it auto-updates as favicons are re-designed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants