rkazakov / ampify

Convert your HTML to Google AMP (Accelerated Mobile Pages)
MIT License
109 stars 32 forks source link

youtube should support other urls #15

Closed gruberjl closed 6 years ago

gruberjl commented 6 years ago

Currently the code only supports http://youtube.com

The following are also valid YouTube urls:

https://youtube.com
http://youtu.be/
https://youtu.be/

index.js line 142 should be: $('iframe[src*="http://www.youtube.com"],iframe[src*="https://www.youtube.com"],iframe[src*="http://youtu.be/"],iframe[src*="https://youtu.be/"]').each((index, element) => {

I'll send a pull request