您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Entfernt die FSK-Hinweise der ARD-Mediathek und ersetzt sie durch das Video. :)
// ==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);