From 385b574b362fbc127b2ffd5f0716012bd2423446 Mon Sep 17 00:00:00 2001 From: steveseguin Date: Fri, 3 Feb 2023 15:38:21 -0500 Subject: [PATCH] &ad=1 fix; iframe.html tweak --- iframe.html | 5 +++++ index.html | 2 +- lib.js | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/iframe.html b/iframe.html index fc3fde0..afa7545 100644 --- a/iframe.html +++ b/iframe.html @@ -18,6 +18,11 @@ } var iframesrc = document.getElementById("viewlink").value; + if (!(iframesrc.startsWith("?") || iframesrc.startsWith("&") || iframesrc.startsWith("http"))){ + if (iframesrc.split(".").length>1){ + iframesrc = "https://"+iframesrc; + } + } var container = document.getElementById("container"); var iframe = newElement("iframe", { allow: "document-domain;encrypted-media;sync-xhr;usb;web-share;cross-origin-isolated;accelerometer;midi;geolocation;autoplay;camera;microphone;fullscreen;picture-in-picture;display-capture;", diff --git a/index.html b/index.html index 78a2345..080bbc1 100644 --- a/index.html +++ b/index.html @@ -2401,7 +2401,7 @@ // session.hidehome = true; // If used, 'hide home' will make the landing page inaccessible, along with hiding a few go-home elements. // session.record = false; // uncomment to block users from being able to record via vdo.ninja's built in recording function - +