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.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Turn kemono.party fluid player into video link
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Makes it real easy to download or open the raw video, as it turns the video name into a clickable link.
// @author       PowfuArras // Discord: @xskt
// @match        *://kemono.party/*
// @match        *://kemono.su/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=kemono.party
// @grant        none
// @run-at       document-start
// @license      FLORRIM DEVELOPER GROUP LICENSE (https://github.com/Florrim/license/blob/main/LICENSE.md)
// ==/UserScript==

(function() {
    "use strict";
    window.addEventListener("load", function () {
        const videos = document.querySelectorAll(".post__video");
        for (let i = 0; i < videos.length; i++) {
            const element = videos[i];
            const summery = element.parentElement.parentElement.children[0];
            const hyperlink = document.createElement("a");
            hyperlink.textContent = summery.textContent;
            hyperlink.target = "_blank";
            hyperlink.href = element.children[0].src;
            hyperlink.appendChild(document.createElement("br"))
            summery.parentElement.prepend(hyperlink);
            summery.remove();
        }
    });
})();