Skip to content

Commit

Permalink
[NCLC]修复去除礼物栏和解除高度限制;增加去除播放器内广告
Browse files Browse the repository at this point in the history
(解除播放器高度似乎已经没有必要了?)
  • Loading branch information
indefined committed Jun 4, 2019
1 parent 1bc82a9 commit 5deeb7a
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions neteaseCCLiveCleaner/neteaseCCLiveCleaner.user.js
Expand Up @@ -2,7 +2,7 @@
// @name 网易CC直播净化 // @name 网易CC直播净化
// @namespace indefined // @namespace indefined
// @supportURL https://github.com/indefined/UserScripts/issues // @supportURL https://github.com/indefined/UserScripts/issues
// @version 0.1.3 // @version 0.1.4
// @description 自定义屏蔽CC直播HTML5网页大部分不想看到的东西 // @description 自定义屏蔽CC直播HTML5网页大部分不想看到的东西
// @author indefined // @author indefined
// @match *://cc.163.com/* // @match *://cc.163.com/*
Expand Down Expand Up @@ -128,7 +128,7 @@ div#vbr-limit-alert {
style:` style:`
/*解除播放器高度锁定,根据网页宽度自动缩放*/ /*解除播放器高度锁定,根据网页宽度自动缩放*/
body:not(.blizzardtv-iframe-body) div#live_player { body:not(.blizzardtv-iframe-body) div#live_player {
height: unset !important; height: 100% !important;
} }
/*解除高度限制后停播状态的聊天区高度竟然需要手动指定,醉了 /*解除高度限制后停播状态的聊天区高度竟然需要手动指定,醉了
#chat { #chat {
Expand Down Expand Up @@ -201,6 +201,16 @@ div#nobility_upgrade,
div#newMountRemindWin { div#newMountRemindWin {
display: none !important; display: none !important;
} }
`
},
noPlayerAd:{
title:'去除播放器内广告',
default:true,
style:`
/*播放器内广告*/
div#advertising {
display: none !important;
}
` `
}, },
foldRank:{ foldRank:{
Expand Down Expand Up @@ -264,6 +274,8 @@ div#room-tabs:hover+.chat-list {
display: none !important; display: none !important;
} }
.gameH5Theater div#live-wrapper , .gameH5Theater div#live-wrapper ,
.gameFlashTheater #live_player,
.gameH5Theater #live_player,
.gameH5FullScreen div#live-wrapper { .gameH5FullScreen div#live-wrapper {
height: 100% !important; height: 100% !important;
} }
Expand Down

0 comments on commit 5deeb7a

Please sign in to comment.