Greasy Fork is available in English.

b站播放器样式优化

整体调整css样式,页面布局,我的环境:win10小任务栏,Chrome带书签栏

2020-02-11 일자. 최신 버전을 확인하세요.

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==UserScript==
// @name         b站播放器样式优化
// @namespace    http://tampermonkey.net/
// @version      1.0.1
// @description  整体调整css样式,页面布局,我的环境:win10小任务栏,Chrome带书签栏
// @author       aotmd
// @match        https://www.bilibili.com/video/av*
// @match        https://www.bilibili.com/bangumi/play/*
// @grant        none
// ==/UserScript==
    function addStyle(rules) {
        var styleElement = document.createElement('style');
        styleElement.type = 'text/css';
        document.getElementsByTagName('head')[0].appendChild(styleElement);
        styleElement.appendChild(document.createTextNode(rules));
    }
    addStyle(`
/*评论区相对位移*/
.common {
    position: relative;
    right: 250px;
}

/*迷你播放器定位*/
.mini-player {
    left: 620px !important;
    top: 180px !important;
}

/*调节迷你播放器大小*/
#bofqi.mini-player .player {
    width: 1280px !important;
    height: 766px !important;
}

.bilibili-player-video {
    margin: 0 !important;
}

#bofqi.mini-player .drag-bar {
    width: 1280px !important;
}

/*播放器大小更改:*/
#bofqi {
    width: 1280px !important;
    height: 766px !important;
    position: relative !important;
    right: 200px;
}

/*评论区调节:*/
.con {
    margin-left: 60px !important;
}

.reply-con,
.info {
    width: 520px !important;
}

.reply-item .info {
    width: 486px !important;
}

.con .text {
    width: 555px !important;
}

/*ad拦截*/
.v-wrap #slide_ad {
    margin-bottom: 0px !important;
    width: 0px !important;
    height: 0px !important;
}

.slide-gg {
    width: 0px !important;
    height: 0px !important;
}

.video-page-special-card {
    width: 0px;
    height: 0px;
    opacity: 0;
}
	`);