Skip to content
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

Support youtu.be domain name #266

Open
s427 opened this issue Jun 16, 2021 · 0 comments
Open

Support youtu.be domain name #266

s427 opened this issue Jun 16, 2021 · 0 comments

Comments

@s427
Copy link

s427 commented Jun 16, 2021

Apparently the script doesn't work when using the YouTube short URL format, which use the youtu.be domain name instead of youtube.com.

I haven't tested extensively, but as far as I can tell, simply adding this domain in the script (line 37) does the trick:

return this.each(function(){
  var selectors = [
    'iframe[src*="player.vimeo.com"]',
    'iframe[src*="youtu.be"]',
    'iframe[src*="youtube.com"]',
    'iframe[src*="youtube-nocookie.com"]',
    'iframe[src*="kickstarter.com"][src*="video.html"]',
    'object',
    'embed'
  ];
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

No branches or pull requests

1 participant