xoeoro User

add something like this to attach "Download video" link under the reddit-video

    function attachDownloadLinkToVideo(video) {
        const sources = video.getElementsByTagName('source');
        if (!sources.length) {
            return false;
        }
        const videoCode = sources[0].src.split('/')[3];
        const downloadLink = `https://vreddit.cc/${videoCode}`;
        const link = document.createElement('a');
        link.text = 'Download video';
        link.href = downloadLink;
        link.target = '_blank';
        link.style.marginLeft = '8px';
        link.style.paddingTop = '8px';
        link.style.display = 'inline-block';
        video.parentElement.parentElement.parentElement.parentElement.append(link);
        video.classList.add('link-attached')
    }

    setInterval(function () {
        const video = document.querySelector('video[poster]:not(.link-attached)');
        if (video) {
            attachDownloadLinkToVideo(video);
        }
    }, 1000);