您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove YouTube video end screen thumbnails that cover the end of the video
- // ==UserScript==
- // @name Remove YouTube Video End Screen Thumbnails
- // @namespace https://www.example.com/
- // @version 1
- // @description Remove YouTube video end screen thumbnails that cover the end of the video
- // @author ChatGPT fr fr
- // @match https://www.youtube.com/*
- // @grant none
- // @license MIT
- // ==/UserScript==
- (function() {
- 'use strict';
- const observer = new MutationObserver(function(mutations) {
- mutations.forEach(function(mutation) {
- if (mutation.type === 'childList') {
- mutation.addedNodes.forEach(function(node) {
- if (node.nodeName === 'DIV' && node.classList.contains('ytp-ce-element')) {
- node.remove();
- }
- });
- }
- });
- });
- observer.observe(document.body, { childList: true, subtree: true });
- const style = document.createElement('style');
- style.type = 'text/css';
- style.innerHTML = `
- .ytp-ce-covering-overlay,
- .ytp-ce-element-shadow,
- .ytp-ce-covering-image,
- .ytp-ce-expanding-image,
- .ytp-ce-element.ytp-ce-video.ytp-ce-element-show,
- .ytp-ce-element.ytp-ce-channel.ytp-ce-channel-this,
- .ytp-ce-element-overlay {
- display: none !important;
- visibility: hidden !important;
- }
- `;
- document.head.appendChild(style);
- })();