您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Przywraca znikające przyciski playera youtube
当前为
// ==UserScript== // @name YoutubeControlsFix // @namespace moooka // @author moooka // @description Przywraca znikające przyciski playera youtube // @include *.wykop.pl/* // @version 1.0 // @grant none // @run-at document-start // ==/UserScript== var MutationObserve = window.MutationObserver, mutationHandler = function (mutationRecords) { mutationRecords.forEach ( function (mutation) { if( mutation.type == "childList" && typeof mutation.addedNodes == "object" && mutation.addedNodes.length ) { for (var i = 0, l = mutation.addedNodes.length; i < l; ++i) { if (mutation.addedNodes[i].nodeType === 1 && new RegExp (Array.from (mutation.addedNodes[i].classList).join ('|')).test (classNameList)) { var playerNode = mutation.addedNodes[i].querySelector ('.youtube-player'); if (playerNode !== null) { FixNode (playerNode); } } } } }); }, observer = new MutationObserver (mutationHandler), classNameList = "block | media-contentvideo | screen", obsConfig = { childList: true, attributes: true, subtree: true, attributeFilter: ['class'] }, FixNode = function (node) { var https = node.getAttribute ('src').replace ('http:','https:'); node.setAttribute('src',https); }; observer.observe (document, obsConfig); var playerNode = document.querySelector ('.youtube-player'); if (playerNode !== null) { FixNode (playerNode); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址