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.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==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();
        }
    });
})();