Skip to content

Support youtu.be domain name #266

@s427

Description

@s427

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'
  ];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions