This is a firefox Extension that allows you to view all YouTube videos. Even if it complains that ad blocker is enabled.
It puts the video into iframe:
iframe.width = '100%';
iframe.height = '100%';
iframe.frameBorder = 0;
iframe.referrerPolicy = 'no-referrer-when-downgrade';
iframe.allowFullscreen = true;
iframe.className = 'youtube_player_frame';
iframe.style.position = 'absolute';
iframe.style.top = '0';
iframe.style.left = '0';
iframe.style.width = '100%';
iframe.style.height = '100%';
iframe.style.border = '0';
- Described by https://extensionworkshop.com/documentation/publish/distribute-sideloading/
- Enter "about:debugging#/runtime/this-firefox" in firefox address bar. Add temporary extentension mechanism
- Navigate to any youtube video
- click extension. Should replace youtube page with embedded frame