整体调整css样式,页面布局,环境:win10小任务栏,Chrome带书签栏,电脑分辨率:1920*1080
目前為
// ==UserScript==
// @name b站播放器样式优化
// @namespace http://tampermonkey.net/
// @version 1.0.8
// @description 整体调整css样式,页面布局,环境:win10小任务栏,Chrome带书签栏,电脑分辨率:1920*1080
// @author aotmd
// @match https://www.bilibili.com/video/av*
// @match https://www.bilibili.com/bangumi/play/*
// @match https://www.bilibili.com/video/BV*
// @match https://www.bilibili.com/video/bv*
// @match https://www.bilibili.com/medialist/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;
}
/*调节迷你播放器大小*/
#bilibili-player.mini-player .player {
width: 1280px !important;
height: 766px !important;
}
.bilibili-player-video {
margin: 0 !important;
}
#bilibili-player.mini-player .drag-bar {
width: 1280px !important;
}
/*播放器大小更改:*/
div#bilibili-player {
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-operator-card{
display: none;
}
#home_popularize .adpos, #home_popularize .l-con, #slide_ad, .activity-m, .bili-header-m .nav-menu .nav-con .nav-item .text-red, .bilibili-player-promote-wrap, .gg-floor-module, .home-app-download, .mobile-link-l, .video-page-game-card {
display: none!important;
}
.video-page-special-card {
width: 0px;
height: 0px;
opacity: 0;
}
/*收藏栏下移*/
div#video-player {
width: 1280px !important;
height: 766px !important;
}
`);