forked from the1812/Bilibili-Evolved
-
Notifications
You must be signed in to change notification settings - Fork 0
/
live.js
9 lines (9 loc) · 15.5 KB
/
live.js
1
2
3
4
5
6
7
8
9
!function(i,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["style/simplify/live"]=e():i["style/simplify/live"]=e()}(globalThis,(()=>(()=>{var i,e,t={62:(i,e,t)=>{"use strict";t.r(e),t.d(e,{setupSkinSimplify:()=>r});const n=coreApis.settings,o=coreApis.spinQuery,r=async()=>{(0,n.addComponentListener)("simplifyLiveroom.switch-skin",(async i=>{const e=await(0,o.select)("#skin-css");e&&(e.media=i?"none":"all")}),!0)}},791:(i,e,t)=>{var n=t(355)((function(i){return i[1]}));n.push([i.id,".simplifyLiveroom-switch-vip .vip-icon, .simplifyLiveroom-switch-fansMedal .fans-medal-item-ctnr, .simplifyLiveroom-switch-title .title-label, .simplifyLiveroom-switch-userLevel .user-level-icon, .simplifyLiveroom-switch-guard .chat-history-panel .guard-icon, .simplifyLiveroom-switch-systemMessage .system-msg, .simplifyLiveroom-switch-systemMessage .announcement-wrapper, .simplifyLiveroom-switch-welcomeMessage .welcome-guard, .simplifyLiveroom-switch-welcomeMessage .welcome-msg, .simplifyLiveroom-switch-popup .chat-popups-section, .simplifyLiveroom-switch-popup #chat-draw-area-vm, .simplifyLiveroom-switch-giftMessage .chat-item.gift-item, .simplifyLiveroom-switch-giftMessage .chat-history-panel .penury-gift-msg, .simplifyLiveroom-switch-guardPurchase .chat-item.guard-buy, .simplifyLiveroom-switch-eventsBanner .z-section-blocks .left-container .flip-view, .simplifyLiveroom-switch-eventsBanner .activity-pushing-out, .simplifyLiveroom-switch-userEffect .live-room-app .aside-area .activity-welcome-section, .simplifyLiveroom-switch-kanban .live-haruna-ctnr, .simplifyLiveroom-switch-enterPrompt .chat-item.important-prompt-item, .simplifyLiveroom-switch-enterPrompt .chat-history-panel .brush-prompt, .simplifyLiveroom-switch-enterPrompt .chat-item.convention-msg, .simplifyLiveroom-switch-pk .chaos-pk, .simplifyLiveroom-switch-topRank .chat-item.top3-notice, .simplifyLiveroom-switch-topRank .chat-item .rank-icon {\n display: none !important;\n}\n\n.simplifyLiveroom-switch-headerPanel .control-panel-ctnr .dialog-ctnr {\n z-index: 800 !important;\n}\n.simplifyLiveroom-switch-headerPanel .player-ctnr .room-info-ctnr {\n display: inline-flex !important;\n flex: 1 0 auto;\n align-items: center !important;\n margin-left: 12px !important;\n}\n.simplifyLiveroom-switch-headerPanel .head-info-section {\n height: 52px !important;\n box-sizing: content-box !important;\n}\n.simplifyLiveroom-switch-headerPanel .header-info-ctnr {\n display: flex !important;\n padding: 10px 24px 10px 12px !important;\n height: auto !important;\n}\n.simplifyLiveroom-switch-headerPanel .header-info-ctnr .blive-avatar-icons,\n.simplifyLiveroom-switch-headerPanel .header-info-ctnr .face-pendants {\n display: none !important;\n}\n.simplifyLiveroom-switch-headerPanel .header-info-ctnr .blive-avatar-pendant {\n width: 48px !important;\n height: 48px !important;\n}\n.simplifyLiveroom-switch-headerPanel .header-info-ctnr .blive-avatar-face,\n.simplifyLiveroom-switch-headerPanel .header-info-ctnr .blive-avatar,\n.simplifyLiveroom-switch-headerPanel .header-info-ctnr .avatar {\n height: 32px !important;\n width: 32px !important;\n}\n.simplifyLiveroom-switch-headerPanel .room-cover {\n width: 32px !important;\n height: 32px !important;\n border-radius: 50% !important;\n}\n.simplifyLiveroom-switch-headerPanel .rows-ctnr {\n display: flex !important;\n}\n.simplifyLiveroom-switch-headerPanel .rows-ctnr .upper-row,\n.simplifyLiveroom-switch-headerPanel .room-info-upper-row {\n display: flex !important;\n align-items: center !important;\n flex: 1 0 auto !important;\n flex-direction: row-reverse !important;\n position: static !important;\n}\n.simplifyLiveroom-switch-headerPanel .rows-ctnr .upper-row .left-ctnr,\n.simplifyLiveroom-switch-headerPanel .rows-ctnr .upper-row .normal-mode,\n.simplifyLiveroom-switch-headerPanel .room-info-upper-row .left-ctnr,\n.simplifyLiveroom-switch-headerPanel .room-info-upper-row .normal-mode {\n position: absolute !important;\n left: 50% !important;\n transform: translateX(-50%) !important;\n}\n.simplifyLiveroom-switch-headerPanel .rows-ctnr .upper-row .live-area,\n.simplifyLiveroom-switch-headerPanel .rows-ctnr .upper-row .area-text,\n.simplifyLiveroom-switch-headerPanel .room-info-upper-row .live-area,\n.simplifyLiveroom-switch-headerPanel .room-info-upper-row .area-text {\n display: inline-flex !important;\n}\n.simplifyLiveroom-switch-headerPanel .rows-ctnr .upper-row .right-ctnr,\n.simplifyLiveroom-switch-headerPanel .rows-ctnr .upper-row .upper-right-ctnr,\n.simplifyLiveroom-switch-headerPanel .room-info-upper-row .right-ctnr,\n.simplifyLiveroom-switch-headerPanel .room-info-upper-row .upper-right-ctnr {\n position: static !important;\n transform: none !important;\n}\n.simplifyLiveroom-switch-headerPanel .rows-ctnr .upper-row .live-title,\n.simplifyLiveroom-switch-headerPanel .rows-ctnr .upper-row .room-title,\n.simplifyLiveroom-switch-headerPanel .room-info-upper-row .live-title,\n.simplifyLiveroom-switch-headerPanel .room-info-upper-row .room-title {\n display: flex !important;\n align-items: center !important;\n}\n.simplifyLiveroom-switch-headerPanel .rows-ctnr .upper-row .live-title .text,\n.simplifyLiveroom-switch-headerPanel .rows-ctnr .upper-row .room-title .text,\n.simplifyLiveroom-switch-headerPanel .room-info-upper-row .live-title .text,\n.simplifyLiveroom-switch-headerPanel .room-info-upper-row .room-title .text {\n line-height: normal !important;\n}\n@media screen and (max-width: 1750px) {\n .simplifyLiveroom-switch-headerPanel .rows-ctnr .upper-row .live-title .title-length-limit,\n.simplifyLiveroom-switch-headerPanel .rows-ctnr .upper-row .room-title .title-length-limit,\n.simplifyLiveroom-switch-headerPanel .room-info-upper-row .live-title .title-length-limit,\n.simplifyLiveroom-switch-headerPanel .room-info-upper-row .room-title .title-length-limit {\n max-width: 250px !important;\n }\n}\n.simplifyLiveroom-switch-headerPanel .rows-ctnr .upper-row .info-section,\n.simplifyLiveroom-switch-headerPanel .room-info-upper-row .info-section {\n display: none !important;\n}\n.simplifyLiveroom-switch-headerPanel .rows-ctnr .lower-row,\n.simplifyLiveroom-switch-headerPanel .room-info-down-row {\n margin: 0 !important;\n order: -1;\n}\n.simplifyLiveroom-switch-headerPanel .rows-ctnr .lower-row .right-ctnr,\n.simplifyLiveroom-switch-headerPanel .rows-ctnr .lower-row .left-ctnr > :nth-child(n+3),\n.simplifyLiveroom-switch-headerPanel .room-info-down-row .right-ctnr,\n.simplifyLiveroom-switch-headerPanel .room-info-down-row .left-ctnr > :nth-child(n+3) {\n display: none !important;\n}\n.simplifyLiveroom-switch-headerPanel .room-owner-username {\n max-width: 150px !important;\n}\n.simplifyLiveroom-switch-headerPanel .live-status,\n.simplifyLiveroom-switch-headerPanel .live-status-label {\n display: none !important;\n}\n\n.simplifyLiveroom-switch-giftMessage:not(.simplifyLiveroom-switch-enterPrompt) .chat-history-list.with-penury-gift:not(.with-brush-prompt) {\n height: 100% !important;\n}\n.simplifyLiveroom-switch-giftMessage:not(.simplifyLiveroom-switch-enterPrompt) .chat-history-list.with-penury-gift.with-brush-prompt {\n height: calc(100% - 32px) !important;\n}\n\n.simplifyLiveroom-switch-enterPrompt:not(.simplifyLiveroom-switch-giftMessage) .chat-history-list.with-brush-prompt:not(.with-penury-gift) {\n height: 100% !important;\n}\n.simplifyLiveroom-switch-enterPrompt:not(.simplifyLiveroom-switch-giftMessage) .chat-history-list.with-brush-prompt.with-penury-gift {\n height: calc(100% - 32px) !important;\n}\n\n.simplifyLiveroom-switch-enterPrompt.simplifyLiveroom-switch-giftMessage .chat-history-list {\n height: 100% !important;\n}\n\n.simplifyLiveroom-switch-rankList .live-room-app .rank-list-section {\n display: none !important;\n}\n.simplifyLiveroom-switch-rankList .live-room-app .chat-history-panel {\n height: calc(100% - 145px) !important;\n}\n.simplifyLiveroom-switch-rankList .live-room-app .chat-history-panel .chat-history-list::-webkit-scrollbar-track {\n background: transparent !important;\n}\n.simplifyLiveroom-switch-rankList .live-room-app .chat-history-panel,\n.simplifyLiveroom-switch-rankList .live-room-app #pay-note-panel-vm .pay-note-panel,\n.simplifyLiveroom-switch-rankList .live-room-app #pay-note-panel-vm .pay-note-panel .detail-info .mask {\n border-radius: 11px 11px 0 0 !important;\n}\n.simplifyLiveroom-switch-rankList.player-full-win .chat-history-panel,\n.simplifyLiveroom-switch-rankList.player-full-win #pay-note-panel-vm .pay-note-panel,\n.simplifyLiveroom-switch-rankList.player-full-win #pay-note-panel-vm .pay-note-panel .detail-info .mask {\n border-radius: 0 !important;\n}\n\n.simplifyLiveroom-switch-giftPanel .gift-panel,\n.simplifyLiveroom-switch-giftPanel .gift-panel-switch,\n.simplifyLiveroom-switch-giftPanel .gift-section.guard-ent,\n.simplifyLiveroom-switch-giftPanel .seeds-wrap > .dp-i-block > .item:not(.seeds),\n.simplifyLiveroom-switch-giftPanel .gift-control-panel .wish-icon,\n.simplifyLiveroom-switch-giftPanel .gift-control-panel .wish-tip,\n.simplifyLiveroom-switch-giftPanel .gift-control-panel .left-part-ctnr,\n.simplifyLiveroom-switch-giftPanel .web-live-player-gift-icon-wrap {\n display: none !important;\n}\n.simplifyLiveroom-switch-giftPanel .gift-control-section,\n.simplifyLiveroom-switch-giftPanel #gift-control-vm .gift-control-panel {\n height: 48px !important;\n}\n.simplifyLiveroom-switch-giftPanel .gift-control-panel .right-part {\n height: 48px !important;\n display: flex !important;\n justify-content: flex-end !important;\n min-width: unset !important;\n}\n.simplifyLiveroom-switch-giftPanel .gift-control-panel .right-part > .dp-table-cell {\n display: flex !important;\n align-items: center !important;\n}\n.simplifyLiveroom-switch-giftPanel .gift-control-panel .right-part > .dp-table-cell .supporting-info {\n transform: translateY(-2px) !important;\n}\n.simplifyLiveroom-switch-giftPanel .gift-control-panel .gift-presets .gift-section {\n display: flex !important;\n}\n.simplifyLiveroom-switch-giftPanel .gift-control-panel .more-gift-section {\n position: static !important;\n margin: 0 6px 0 0 !important;\n height: auto !important;\n}\n.simplifyLiveroom-switch-giftPanel .gift-control-panel .z-gift-package {\n margin: auto 0 !important;\n position: static !important;\n}\n.simplifyLiveroom-switch-giftPanel .gift-control-panel .z-gift-package .gift-package-btn {\n padding: 0 !important;\n}\n.simplifyLiveroom-switch-giftPanel .gift-control-panel .right-part {\n padding-top: 0 !important;\n}\n.simplifyLiveroom-switch-giftPanel .gift-control-panel .right-section {\n display: none !important;\n}\n.simplifyLiveroom-switch-giftPanel .gift-control-panel .skin-bg {\n height: 48px !important;\n}\n\n.simplifyLiveroom-switch-guard .guard-danmaku::before {\n border-image: none !important;\n background-color: transparent !important;\n}\n.simplifyLiveroom-switch-guard .guard-danmaku::before .guard-danmaku {\n margin: 0 !important;\n padding: 4px 5px !important;\n}\n.simplifyLiveroom-switch-guard .guard-danmaku::before .guard-danmaku::after {\n background-image: none !important;\n}\n.simplifyLiveroom-switch-guard .chat-history-panel [class*=guard-level-] {\n padding: 4px 5px !important;\n margin: 0 !important;\n}\n.simplifyLiveroom-switch-guard .chat-history-panel [class*=guard-level-]::after {\n display: none !important;\n}\n.simplifyLiveroom-switch-guard .chat-history-panel .chat-colorful-bubble {\n margin: 0 !important;\n display: block !important;\n border-radius: 0 !important;\n background-color: transparent !important;\n}\n.simplifyLiveroom-switch-guard .fans-medal-item.medal-guard {\n margin-left: 0 !important;\n}\n\n.simplifyLiveroom-switch-emoticons .control-panel-icon-row .emoticons-panel {\n display: none !important;\n}\n.simplifyLiveroom-switch-emoticons .chat-history-list .chat-item .emoticon img {\n display: none !important;\n}\n.simplifyLiveroom-switch-emoticons .chat-history-list .chat-item .emoticon span {\n display: inline-flex !important;\n}\n.simplifyLiveroom-switch-emoticons .danmaku-item-container .bilibili-danmaku img {\n display: none !important;\n}",""]),i.exports=n},355:i=>{"use strict";
// eslint-disable-next-line func-names
i.exports=function(i){var e=[];return e.toString=function(){return this.map((function(e){var t=i(e);return e[2]?"@media ".concat(e[2]," {").concat(t,"}"):t})).join("")},
// eslint-disable-next-line func-names
e.i=function(i,t,n){"string"==typeof i&&(
// eslint-disable-next-line no-param-reassign
i=[[null,i,""]]);var o={};if(n)for(var r=0;r<this.length;r++){
// eslint-disable-next-line prefer-destructuring
var a=this[r][0];null!=a&&(o[a]=!0)}for(var s=0;s<i.length;s++){var p=[].concat(i[s]);n&&o[p[0]]||(t&&(p[2]?p[2]="".concat(t," and ").concat(p[2]):p[2]=t),e.push(p))}},e}},604:(i,e,t)=>{var n=t(791);n&&n.__esModule&&(n=n.default),i.exports="string"==typeof n?n:n.toString()}},n={};function o(i){var e=n[i];if(void 0!==e)return e.exports;var r=n[i]={id:i,exports:{}};return t[i](r,r.exports,o),r.exports}e=Object.getPrototypeOf?i=>Object.getPrototypeOf(i):i=>i.__proto__,o.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var r=Object.create(null);o.r(r);var a={};i=i||[null,e({}),e([]),e(e)];for(var s=2&n&&t;"object"==typeof s&&!~i.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((i=>a[i]=()=>t[i]));return a.default=()=>t,o.d(r,a),r},o.d=(i,e)=>{for(var t in e)o.o(e,t)&&!o.o(i,t)&&Object.defineProperty(i,t,{enumerable:!0,get:e[t]})},o.o=(i,e)=>Object.prototype.hasOwnProperty.call(i,e),o.r=i=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};return(()=>{"use strict";o.d(r,{component:()=>n});const i=coreApis.componentApis.switchOptions,e=coreApis.componentApis.styledComponent,t=coreApis.utils.urls,n=(0,i.newSwitchComponentWrapper)({name:"simplifyOptions",dimAt:"checked",switchProps:{checkedIcon:"mdi-eye-off-outline",notCheckedIcon:"mdi-eye-outline"},switches:{vip:{defaultValue:!0,displayName:"老爷图标"},enterPrompt:{defaultValue:!0,displayName:"入场通知"},fansMedal:{defaultValue:!0,displayName:"粉丝勋章"},title:{defaultValue:!0,displayName:"活动头衔"},guard:{defaultValue:!0,displayName:"舰长图标"},systemMessage:{defaultValue:!0,displayName:"全区广播"},welcomeMessage:{defaultValue:!0,displayName:"欢迎信息"},giftMessage:{defaultValue:!0,displayName:"礼物弹幕"},emoticons:{defaultValue:!0,displayName:"表情特效"},guardPurchase:{defaultValue:!0,displayName:"上舰提示"},giftPanel:{defaultValue:!0,displayName:"付费礼物"},headerPanel:{defaultValue:!1,displayName:"标题栏活动"},userEffect:{defaultValue:!0,displayName:"入场特效"},kanban:{defaultValue:!0,displayName:"看板娘"},eventsBanner:{defaultValue:!1,displayName:"活动横幅"},rankList:{defaultValue:!1,displayName:"排行榜"},popup:{defaultValue:!1,displayName:"抽奖提示"},pk:{defaultValue:!1,displayName:"PK浮窗"},topRank:{defaultValue:!1,displayName:"高能榜提示"},skin:{defaultValue:!1,displayName:"房间皮肤"}}})({name:"simplifyLiveroom",displayName:"简化直播间",entry:(0,e.styledComponentEntry)((()=>Promise.resolve().then(o.t.bind(o,604,23))),(async()=>{const{setupSkinSimplify:i}=await Promise.resolve().then(o.bind(o,62));i()})),description:{"zh-CN":"隐藏直播间中各种不需要的内容."},tags:[componentsTags.live,componentsTags.style],urlInclude:t.liveUrls,commitHash:"dd29a98069987f6859615844b6a97f609c5ddfd2",coreVersion:"2.7.1"})})(),r=r.component})()));