Turn kemono.party fluid player into video link

Makes it real easy to download or open the raw video, as it turns the video name into a clickable link.

  1. // ==UserScript==
  2. // @name Turn kemono.party fluid player into video link
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Makes it real easy to download or open the raw video, as it turns the video name into a clickable link.
  6. // @author PowfuArras // Discord: @xskt
  7. // @match *://kemono.party/*
  8. // @match *://kemono.su/*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=kemono.party
  10. // @grant none
  11. // @run-at document-start
  12. // @license FLORRIM DEVELOPER GROUP LICENSE (https://github.com/Florrim/license/blob/main/LICENSE.md)
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. "use strict";
  17. window.addEventListener("load", function () {
  18. const videos = document.querySelectorAll(".post__video");
  19. for (let i = 0; i < videos.length; i++) {
  20. const element = videos[i];
  21. const summery = element.parentElement.parentElement.children[0];
  22. const hyperlink = document.createElement("a");
  23. hyperlink.textContent = summery.textContent;
  24. hyperlink.target = "_blank";
  25. hyperlink.href = element.children[0].src;
  26. hyperlink.appendChild(document.createElement("br"))
  27. summery.parentElement.prepend(hyperlink);
  28. summery.remove();
  29. }
  30. });
  31. })();