CyTube/templates/iframe.pug
Xaekai 25ddc336e0 Use child iframe for BitChute
By using an iframe we can take advantage of the referrer meta tag,
while still being able to scaffold everything relatively easily because it's same-origin
2022-09-18 19:10:36 -07:00

37 lines
1 KiB
Plaintext

doctype html
html(lang="en")
head
meta(charset="utf-8")
meta(name="viewport", content="width=device-width, initial-scale=1.0")
meta(name="referrer", content="same-origin")
link(rel="stylesheet", href="/css/video-js.css")
link(rel="stylesheet", href="/css/videojs-resolution-switcher.css")
style.
body { overflow-y: hidden }
body
#wrap
#videowrap
#ytapiplayer
script.
const USEROPTS = {
default_quality: 'auto'
}
const CLIENT = {
leader: false
}
let VOLUME = 0;
function waitUntilDefined(obj, key, fn) {
if(typeof obj[key] === "undefined") {
setTimeout(function () {
waitUntilDefined(obj, key, fn);
}, 100);
return;
}
fn();
}
script(src="/js/jquery-1.12.4.min.js")
script(src="/js/video.js")
script(src="/js/videojs-resolution-switcher.js")
script(src="/js/playerjs-0.0.12.js")
script(src="/js/player.js")