Here is the Dillon webcam:
// ==UserScript==
// @name Mainsail webcam
// @namespace Violentmonkey Scripts
// @match http://your_mainsail_machine_ip:7126/
// @grant none
// @version 1.0
// @author scmanjarrez
// @description 5/21/2023, 4:40:59 PM
// ==/UserScript==
(function() {
‘use strict’;
// Function to replace the video tag with an iframe
function replaceVideoWithIframe() {
var videoElement = document.querySelector(‘div[data-v-4abc3b36] video.webcamImage’);
if (videoElement) {
var videoSrc = videoElement.src;
var iframeElement = document.createElement(‘iframe’);
iframeElement.src = “https://guest:guestguest3!@buffalo.oppedahl.com:8031/cgi-bin/mjpg/video.cgi?channel=1&subtype=1”;
iframeElement.allow = ‘autoplay’;
iframeElement.muted = true;
iframeElement.style.transform = ‘none’;
iframeElement.style.width = ‘100%’;
iframeElement.classList.add(‘webcamImage’);
videoElement.parentNode.replaceChild(iframeElement, videoElement);
}
}
// Wait for the DOM to be loaded
window.addEventListener(‘DOMContentLoaded’, function() {
setTimeout(replaceVideoWithIframe, 5000);
});
})();
Here is the Buffalo webcam: