您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
bilibili去除鼠标悬停预览视频。只去除全屏预览暂时不知道怎么弄,只能把悬停预览整个去除。
当前为
// ==UserScript== // @name bilibili去除鼠标悬停预览视频 // @namespace https://greasyfork.org/zh-CN/scripts/454786 // @version 0.1 // @description bilibili去除鼠标悬停预览视频。只去除全屏预览暂时不知道怎么弄,只能把悬停预览整个去除。 // @author dazzulay // @match *://*.bilibili.com/* // @icon https://www.bilibili.com/favicon.ico // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Your code here... new MutationObserver(function(mutations,observer) { //console.log('MutationObserver'); // mutations.forEach(function(mutation){ // mutation.addedNodes.forEach(function(node) { // // console.log('add node',node); // if(node.id == 'media-preview'){ // node.remove(); // } // }); // }); // document.querySelectorAll('.v-inline-player').forEach(function(node) { // node.remove(); // }); document.querySelectorAll('.__scale-player-wrap').forEach(function(node) { observer.disconnect(); let subnode =node.querySelector('.bili-video-card__image--wrap'); subnode.remove(); node.appendChild(subnode.cloneNode(true)); //console.log(subnode); }); }).observe(document.body, { //subtree: true, childList: true, }); })();