您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
将已看完的播放记录移除掉。
当前为
// ==UserScript== // @name 原创 - 哔哩哔哩 - 隐藏已看完的播放记录 // @name:en_US Original - BiliBili - Hide watched playlists // @description 将已看完的播放记录移除掉。 // @version 1.0.1 // @author CPlayer // @license MulanPSL-2.0 // @namespace https://www.gitlink.org.cn/CPlayerCHN // @match https://www.bilibili.com/account/history // @icon http://bilibili.com/favicon.ico // @grant GM_addStyle // @noframes // ==/UserScript== (function() { 'use strict'; // 修改页面最小高度,让更多播放记录正常加载。 GM_addStyle("body { min-height: 125vh }") // 定义「侦测器」变量。 var observer = new MutationObserver((elms) => { // 遍历「播放记录」信息 document.querySelectorAll('#history_list .history-record').forEach(elm => { // 如果带有「已看完」字样,就移除它 if(/已看完/.test(elm.textContent)) { // elm.style.display = "none"; elm.remove(); } }) }); // 配置「侦测器」侦测目标节点 observer.observe(document.querySelector('#history_list'), { childList: true }); })();