点我留言
👋概括:
主要简化了B站视频播放页的一些自己不需要的功能,去除了首页的长富广告,自定义为其他图片,播放页侧边栏将up主信息更改为博客类型的垂直排列,头像增加hover效果,等其他小修改。样式不定时更新,具体请安装使用查看变化和修改!
Authorxiaolongmr
LicenseNo License
Categoryhttps://www.bilibili.com
Created
Updated
Size48 kB
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
主要简化了B站视频播放页的一些自己不需要的功能,去除了首页的长富广告,自定义为其他图片,播放页侧边栏将up主信息更改为博客类型的垂直排列,头像增加hover效果,等其他小修改。样式不定时更新,具体请安装使用查看变化和修改!
会存在bug,本人只是业余前端菜鸟,上传备份自用的,不晓得会不会有人碰巧用到。
我的邮箱:xhcy1116@qq.com 如果有幸用到并发现问题,很高兴能提出问题和意见,我会尽力解决
2023/3/11
2023/3/5
2023/2/5
2022/5/4
2022/5/2
2022/4/30
2022/4/21
2022/4/17
2022/4/8
2022/3/27
2022/2/12
2022/2/2
2022/2/1
2022/1/26
2022/1/25
2022/1/24
/* ==UserStyle==
@name bilibili界面简化2023(2024年重新修改)
@version 20230928.07.66
@namespace userstyles.world/user/xiaolongmr
@description ## 🕒 最后更新: 以上方更新于时间为准
### 建议搭配油猴【玩的嗨】工具箱脚本 <a target=_blank rel=noopener href=“https://greasyfork.org/zh-CN/scripts/384538”>点我去安装</a>
#### 安装后可: 🎉 bilibili视频封面获取; 🎉 bilibili视频下载(已支持分P下载)
### 👋概括:
主要简化了B站视频播放页的一些自己不需要的功能,去除了首页的长富广告,自定义为其他图片,播放页侧边栏将up主信息更改为博客类型的垂直排列,头像增加hover效果,等其他小修改。样式不定时更新,具体请安装使用查看变化和修改!
### 🙋♂️提示:
会存在bug,本人只是业余前端菜鸟,上传备份自用的,不晓得会不会有人碰巧用到。
### ✍待添加:
1️⃣:用户自定义内容(功能)
2️⃣:其他B站页面的适配,和简化(暂时大部分只对视频播放页进行修饰,原因这个页面最经常使用)
3️⃣:代码分类太乱,抽空整理
### ✨其他:
我的邮箱:xhcy1116@扣扣.com 如果有幸用到并发现问题,很高兴能提出问题和意见,我会尽力解决
@author xiaolongmr
@license No License
==/UserStyle== */
@-moz-document domain("www.bilibili.com"),
regexp("^https?://www\\.bilibili\\.com/?((index\\.html)|(\\?.*))?"),
regexp("https?\\:\\/\\/(www\\.)?bilibili\\.[a-z]{2,3}(\\.[a-z]{2,3})?\\/video.*") {
/*============== 【用户自定义】 ============= */
/* 添加时间:2022年2月5号 */
:root {
--warp-bgcolor: #ffffffc9;
/* 视频页卡片背景颜色 */
--bg1_float: #f4fffd;
/* 首页滚动时 顶部黏贴的导航栏的背景,和右边返回顶部等的背景 */
--header_l-con_r-con_hoverbg: -1px 3px 15px 8px #84848494;
/* 顶栏 视频左 视频右 鼠标移入背景阴影效果 */
--header-bg: #ffffffc9 border-box;
/* 顶栏背景 */
--body-bg: url(https://img-baofun.zhhainiao.com/pcwallpaper_ugc/scene/6dd3e413b4fc02ea50aaf9654a8dbca0_preview.jpg);
--body-bg: url(var(--activity-bg-custom));
/* --header-bg: url(bkgdImg); */
/* 网页背景图片 */
--avatar: url(https://i0.hdslb.com/bfs/garb/item/516ecdf2d495a62f1bac31497c831b711823140c.webp@144w_144h.webp);
/* 头像挂件 */
--bg1: var(--Wh0);
--Wh0: #fff;
}
/*============== ✨✨【全局鼠标样式】✨✨添加时间:2022年2月1号 ============= */
body,
a {
color: #4d4d4d;
font-family: Helvetica Neue, Microsoft Yahei;
/* 浏览器鼠标样式插件https://custom-cursor.com/en/how-to-use/chrome */
cursor: url(https://gcore.jsdelivr.net/gh/caibhh/CDN/img/blog/default.cur), default;
}
/*============== 💝💝【悼念飞机逝世的同胞】 💝💝添加时间:2022年03月27号 ============= */
/* filter: grayscale(100%); 数值越接近1就越没有颜色 */
/* html {
filter: gray;
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
} */
html.gray {
/* 正常日子用0% */
filter: grayscale(10%);
}
/* 染色效果添加时间:2022年12月3号 */
.recommended-swipe-body .carousel-area {
transition: .5s filter;
filter: sepia(100%) saturate(200%) hue-rotate(160deg);
}
}
@-moz-document domain("account.bilibili.com"),
domain("search.bilibili.com"),
domain("bilibili.com"),
regexp("^https?://www\\.bilibili\\.com/?((index\\.html)|(\\?.*))?") {
/*============== 【播放页部分】================*/
/*=============== ✨✨【滚动条部分】✨✨ 添加时间:2022年1月28号 ==============*/
/* 优化记录📑 */
/*===2022/3/15:在代码9里面可以自己将提示消息自己选择是否展示,默认关闭
=====2022/:
*/
::-webkit-scrollbar/* ==整个滚动条== */
{
width: 10px;
/* 竖着时候滚动条的宽度 */
height: 10px;
/* 横着时候滚动条的宽度 */
background-color: #F5F5F5;
}
::-webkit-scrollbar-track/* ==滚动条轨道== */
{
background-color: #fff;
/*屏幕滚动条背景颜色 */
border-left: 1px solid #eaeaea;
/* 滚动条背景颜色的边框,只需要左边框即可 */
}
::-webkit-scrollbar-corner {
/* ==当同时有垂直滚动条和水平滚动条时交汇的部分== */
background-color: #A9C9FF;
}
::-webkit-scrollbar-thumb/* ==滚动条上的滚动滑块== */
{
background-color: #9cd3f7;
/* 滚动条正常显示的颜色 */
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .4) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .4) 50%, rgba(255, 255, 255, .4) 75%, transparent 75%, transparent);
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background-color: #39b0ff;
/* 鼠标放到滚动条上的颜色变化 */
}
::-webkit-scrollbar-thumb:active {
background-color: #fb7299;
/* 鼠标点击拖拽滚动条时候的颜色变化 */
}
::-webkit-scrollbar-track-piece {
background-color: #ffffff;
}
/*============== 🎯【END】🎯 ================*/
/*=============== ✨✨【改变B站背景图片】✨✨ 添加时间:2022年1月24号 ==============*/
/* 优化记录📑 */
/*===2022/02/01:摒弃原来单一一张的背景图片,更换使用小歪大佬提供的免费随机图片api
/*===2023/01/01:兔年了,更换站酷大佬画的新年贺图
=====2022/03/26
*/
html {
background-color: transparent;
}
/* body {
background-image: none !important;
} */
#app:before {
content: "";
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: -100;
/* 🔰此处填写需要设置B站背景的图片地址url
1️⃣支持图片api 例如:https://api.ixiaowai.cn/api/api.php
2️⃣支持图片地址 例如:https://img.zcool.cn/community/01474b5db9a2b5a8012163ba3f6275.png
*/
background-image: var(--body-bg)!important;
background-position: center bottom;
background-size: cover;
background-attachment: fixed;
background-repeat: no-repeat;
}
/*============== 🎯【END】🎯 ================*/
#header-v3,
#app {
/* app里面的背景颜色设置为不透明灰色当作遮罩 */
background-color: #fff0;
background-repeat: no-repeat;
background-size: cover;
}
/* 视频页面内容主体部分 */
.v-wrap {
/* 内容部分使其背景颜色变透明 */
background-color: #ffefef24;
transition: all .3s;
}
/* 视频页面内容左部分和右部分 */
.left-container,
.right-container,
.comment-send-lite {
/* 内容左右部分背景变透明 */
/* background-color: #ffffffd9; */
background-color: var(--warp-bgcolor);
/* backdrop-filter: blur(.5rem); 加模糊有bug */
margin: 20px;
margin-right: 5px;
border-radius: 10px;
padding: 2em;
box-shadow: 0 1px 20px 0 rgb(211 234 255);
transition: all .3s;
}
.bb-comment,
.comment-bilibili-fold {
font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif;
font-size: 0;
zoom: 1;
min-height: 100px;
background: #fff0;
}
/* 视频页面做部分背景添加灯笼效果 */
.l-con {
background-image: url(https://xiaolongmr.github.io/test/img/gif1.gif);
background-repeat: no-repeat;
background-size: 110px;
background-position: top right;
}
/* 视频标题添加效果 */
.tit {
transition: all .5s;
}
.tit:hover {
color: hotpink;
font-size: 20px;
cursor: pointer;
}
.tit:hover:after {
content: " 🎉";
vertical-align: middle;
transition: all .3s;
}
/* 隐藏up主侧边栏 */
/* .v-wrap .r-con {
display: none;
} */
/* 鼠标移入播放页up主头像展示背景gif */
.r-con:hover #v_upinfo::after {
margin: -214px;
/* display: none; */
content: '';
/* position: absolute; */
top: 0;
left: 0;
/* padding-top: -148px !important; */
width: 100%;
height: 241px;
background: url(https://gcore.jsdelivr.net/npm/typecho_joe_theme@4.4.5/assets/img/snow.gif);
background-size: cover;
}
/* 视频页面内容左部分和右部分鼠标放入效果 */
.l-con:hover,
.r-con:hover,
.bili-header .bili-header__bar:hover,
.comment-send-lite:hover {
box-shadow: var(--header_l-con_r-con_hoverbg);
transition: all .3s;
}
/* 进度条2022年1月2 */
/* .bui-thumb,.bui-thumb:hover{
background-color: #f8ffffcc;
background-image: url(https://s3.bmp.ovh/imgs/2022/01/810086776b036b56.gif);
background-repeat: no-repeat;
background-size: cover;
background-position: center left;
width: 90px;
height: 25px;
} */
/* 测试使用 */
/* * {
border: 1px solid red !important;
} */
/* .r-con .up-info{
display: flex;
} */
/* up主信息居中 */
.up-info_right {
text-align: center;
}
.report-scroll-module,
.up-info--right {
box-sizing: border-box;
/* height: 158px; */
/* padding-top: 15px; */
/* padding-bottom: 12px; */
/* display: flex; */
}
.up-info-container,
.up-info--right {
box-sizing: border-box;
height: 200px!important;
padding-top: 15px;
padding-bottom: 12px;
display: flex;
align-content: center;
align-items: center;
flex-wrap: nowrap;
flex-direction: column;
text-align: center;
}
.up-detail .up-detail-top {
display: flex;
justify-content: center;
align-items: center;
}
.up-info-container .up-info_right {
width: 256px;
/* height: 96px; */
/* margin-left: 13px; */
/* float: left; */
padding-top: 40px;
}
/* up主头像居中2023、6、28 */
.up-info-container {
/* 整个头像部分,原来子集有左边和右边 */
box-sizing: border-box;
height: 153px;
display: flex;
align-items: center;
flex-direction: column;
}
.up-detail .up-description {
/* up主自我介绍 2023、6、28 */
margin-top: 2px;
font-size: 13px;
line-height: 16px!important;
height: 32px!important;
color: #9499A0;
color: var(--text3);
/* overflow: hidden; */
text-overflow: ellipsis;
white-space: break-spaces!important;
}
/* up主头像旋转 */
.r-con .report-scroll-module .u-face {
/* float: left; */
width: 48px;
/* transform: scale(1.5); */
transition: all .5s;
}
.r-con .report-scroll-module .u-face:hover {
transform: rotate(360deg) scale(1.5);
}
.r-con .report-scroll-module .u-face .bili-avatar {
width: 60px !important;
height: 60px !important;
...