EroThots Show Video Link

append video source URL below video element

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         EroThots Show Video Link
// @namespace    http://tampermonkey.net/
// @version      2024-08-12
// @description  append video source URL below video element
// @author      neeeee
// @match      https://erothots1.com/*
// @match      https://erothots.co/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=undefined.
// @license MIT
// @grant        none
// ==/UserScript==

(function() {
  'use strict';
    let videoPlayer = document.querySelector('.video-player');
    let vPlayer = document.querySelector('.v-player');
    let vSource = vPlayer.firstElementChild.src;
    let downloadLink = document.createElement('a');
    videoPlayer.appendChild(downloadLink);
    downloadLink.setAttribute('download', '');
    downloadLink.className = 'downloadLink';
    downloadLink.href = vSource;
    downloadLink.innerHTML = `<strong>Download Source:</strong>  <span style="text-decoration: underline;text-color: #a5adce;">${vSource}</span>`;
})();