B站仿旧版+隐藏动态页新版按钮【纯CSS改动】

拒绝老年版页面!缩小视频页部分UI,还原用户动态页转发等UI,隐藏动态首页前往新版按钮(此脚本并非100%还原旧版)

当前为 2024-12-22 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         B站仿旧版+隐藏动态页新版按钮【纯CSS改动】
// @namespace    qtqz
// @version      0.4
// @description  拒绝老年版页面!缩小视频页部分UI,还原用户动态页转发等UI,隐藏动态首页前往新版按钮(此脚本并非100%还原旧版)
// @author       qtqz
// @license      MIT
// @match        https://t.bilibili.com/
// @match        https://www.bilibili.com/video/*
// @match        https://space.bilibili.com/*
// @icon         https://www.bilibili.com/favicon.ico
// @grant        none
// ==/UserScript==

//created 2023.11
//2024.12 修复视频溢出

(function () {
    'use strict';
   
        var node = document.createElement("style");
        node.appendChild(document.createTextNode(`
        .bili-dyn-version-control {
            display: none!important;
        }
        @media (min-width: 1681px){
            #mirror-vdcon > div.right-container.is-in-large-ab div.base-video-sections-v1 > div.video-sections-content-list{
                max-height: 100vh !important;
            }
            .video-container-v1 .right-container {
                width: 350px!important;
            }
            .is-in-large-ab .video-page-card-small .card-box .info .title {
                font-size: 15px!important;
            }
            .video-info-container .video-title {
                font-size: 20px!important;
            }
            .video-info-container {
                height: 96px!important;
            }
            .video-desc-container .basic-desc-info {
                font-size: 14px!important;
                line-height: 22px!important;
            }
            .video-toolbar-left-item .video-toolbar-item-icon {
                width: 30px!important;
                height: 30px!important;
            }
            .base-video-sections-v1 .video-section-list .video-episode-card__info-title {
                font-size: 14px!important;
            }
        }

        .bili-dyn-item__header {
            height: 69px!important;
            padding-top: 23px!important;
        }
        .bili-dyn-content__orig.reference {
            background-color: #f4f5f7!important;
            margin: 12px 0 0 -12px!important;
            padding: 12px 14px!important;
        }
    `));
        var head = document.querySelector("head");
        head.appendChild(node);
/*
        .left-container {
            width: 1090px!important;
        }
font-size: 16px;
line-height: 1.7em;
font-weight: 400;
*/
})();