您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Assign an extra option to the default annotations button to toggle the new youtube cards
// ==UserScript== // @name Youtube Card Annotations Disable // @description Assign an extra option to the default annotations button to toggle the new youtube cards // @namespace q1k // @version 1.0 // @match *://www.youtube.com/* // @exclude *://www.youtube.com/live_chat* // @exclude *://www.youtube.com/tv* // @grant none // @require https://code.jquery.com/jquery-3.1.0.slim.js // ==/UserScript== var checkExist = setInterval(function() { if ( $('.playing-mode').length ) { $('.ytp-settings-button').click(); $('.ytp-settings-button').click(); $('<style> .ytp-ce-element { display: none; } </style>').appendTo(document.head); $('.ytp-menuitem').click(function() { if ($(this).text().trim() === "Annotations") { if ($(this).attr('aria-checked') == 'true') { $('.ytp-ce-element').css('display', 'block'); } else { $('.ytp-ce-element').css('display', 'none'); } } }); clearInterval(checkExist); } }, 1000);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址