Greasy Fork 还支持 简体中文。

ARD-Mediathek-ANTI-FSK

Entfernt die FSK-Hinweise der ARD-Mediathek und ersetzt sie durch das Video. :)

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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

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

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

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

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        ARD-Mediathek-ANTI-FSK
// @description Entfernt die FSK-Hinweise der ARD-Mediathek und ersetzt sie durch das Video. :)
// @namespace   ardmediaantifsk
// @include     http://www.ardmediathek.de/*
// @include     http://ardmediathek.de/*
// @version     1
// @grant       none
// ==/UserScript==

function removeFskPanels() {
    var nodeList = document.querySelectorAll(".fsk");
    for (var i = 0, length = nodeList.length; i < length; i++) {
        if (true !== nodeList[i].FSK_REMOVED) {
            nodeList[i].FSK_REMOVED = true;
            removeFskPanel(nodeList[i]);
        }
    }
}

function removeFskPanel(fskNode) {
    var nodeList = fskNode.querySelectorAll(".textWrapper");
    for (var i = 0, length = nodeList.length; i < length; i++) {
        nodeList[i].parentNode.removeChild(nodeList[i]);
    }

    nodeList = fskNode.querySelectorAll(".media");
    for (var i = 0, length = nodeList.length; i < length; i++) {
        addPlayerAttribute(nodeList[i]);
    }
}

function addPlayerAttribute(mediaNode) {
    var myParam = window.location.search.split('documentId=')[1] ? window.location.search.split('documentId=')[1] : '0';
    myParam = parseInt(myParam);
    if (myParam > 0) {
        mediaNode.setAttribute("data-ctrl-player", "{'id':'player','action':{'default':['init','calcCssClass','calcHeight']},'pcUrl':'/play/config/" + myParam + "','mcUrl':'/play/media/" + myParam + "'}");
    }
    app.initControllers(document.body);
}

var intervalId = setInterval(removeFskPanels, 1000);