EroThots Show Video Link

append video source URL below video element

  1. // ==UserScript==
  2. // @name EroThots Show Video Link
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-08-12
  5. // @description append video source URL below video element
  6. // @author neeeee
  7. // @match https://erothots1.com/*
  8. // @match https://erothots.co/*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=undefined.
  10. // @license MIT
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. let videoPlayer = document.querySelector('.video-player');
  17. let vPlayer = document.querySelector('.v-player');
  18. let vSource = vPlayer.firstElementChild.src;
  19. let downloadLink = document.createElement('a');
  20. videoPlayer.appendChild(downloadLink);
  21. downloadLink.setAttribute('download', '');
  22. downloadLink.className = 'downloadLink';
  23. downloadLink.href = vSource;
  24. downloadLink.innerHTML = `<strong>Download Source:</strong> <span style="text-decoration: underline;text-color: #a5adce;">${vSource}</span>`;
  25. })();