See Through Flow Player

Display the video source link for FlowPlayer elements.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         See Through Flow Player
// @namespace    http://tampermonkey.net/
// @version      1.0.1
// @description  Display the video source link for FlowPlayer elements.
// @author       firetree
// @match        *://*/*
// @icon         none
// @grant        GM_registerMenuCommand
// @grant        GM_getValue
// @grant        GM_setValue
// @license      WTFPL
// @require      https://scriptcat.org/lib/513/2.0.0/ElementGetter.js#sha256=KbLWud5OMbbXZHRoU/GLVgvIgeosObRYkDEbE/YanRU=
// ==/UserScript==

(function() {
    'use strict';
    elmGetter.each(".fp-player", document, el => {
        if (el.classList.contains("see-through-fplayer")) return
        let links = document.createElement("div")
        JSON.parse(el.parentElement.dataset.item).sources.forEach(src => {
            let link = document.createElement("a")
            link.href = src.src
            link.textContent = `${src.src} type: ${src.type}`
            link.target = '_blank'
            links.append(link)
        })
        el.after(links)
        el.classList.add("see-through-fplayer")
    })
})();