您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
让你的bilibili页面变得极简
// ==UserScript== // @name bilibili纯净版 // @namespace http://tampermonkey.net/ // @version 0.4 // @description 让你的bilibili页面变得极简 // @author cccake // @license MIT // @match *://*.bilibili.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com // @grant none // ==/UserScript== (function() { 'use strict'; const selectorsToHide = [ "#i_cecream > div.bili-feed4 > div.bili-header.large-header > div.bili-header__bar > ul.left-entry", "#i_cecream > div.bili-feed4 > div.bili-header.large-header > div.bili-header__banner > div.animated-banner", "#i_cecream > div.bili-feed4 > div.bili-header.large-header > div.bili-header__channel", "#i_cecream > div.bili-feed4 > main", "#i_cecream > div.bili-feed4 > div.header-channel", "#i_cecream > div.bili-feed4 > div.bili-header.large-header > div.bili-header__bar > div > div > div > div.trending", "#reco_list", "div.pop-live-small-mode", "div.ad-report", "a.ad-report" ]; function hideElements() { selectorsToHide.forEach(selector => { const elements = document.querySelectorAll(selector); if (elements.length) { elements.forEach(element => { element.style.display = 'none'; }); } }); } function checkElementsPeriodically() { hideElements(); setTimeout(checkElementsPeriodically, 500); } // Start the process checkElementsPeriodically(); })();