-
Notifications
You must be signed in to change notification settings - Fork 0
/
bilibli.js
38 lines (29 loc) · 1.37 KB
/
bilibli.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// ==UserScript==
// @name bilibili ad block
// @namespace http://tampermonkey.net/
// @version 1.0.0
// @description try to take over the world!
// @author halo
// @match https://*.bilibili.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com
// @run-at document-body
// @grant unsafeWindow
// @grant GM_addStyle
// @grant GM_notification
// ==/UserScript==
// 移除搜索框热搜
GM_addStyle(".trending { display: none !important; }");
// 首页优化
if (location.host === "www.bilibili.com") {
// 主页轮播图 直播卡片,番剧卡片 , 客服按钮
GM_addStyle(".recommended-swipe , .floor-single-card , .palette-button-wrap { display: none !important; }");
}
// 视频页
if (location.href.startsWith('https://www.bilibili.com/video/')) {
GM_addStyle("#bar , .pop-live-small-mode,.slide-ad-exp, .video-page-game-card-small, .activity-m-v1 , .act-now ,.video-page-special-card-small{ display: none !important; }");
}
// 直播页
if (location.href.startsWith('https://live.bilibili.com/')) {
GM_addStyle("#chat-control-panel-vm { background-color: rgb(215,236,249); background-image: none!important;}" )
GM_addStyle("#gift-control-vm , .side-bar-cntr, .room-info-ctnr , .flip-view ,.right-ctnr , #rank-list-vm , .medal-section { display: none !important; }");
}