mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Merge branch 'preview-fixes' of https://github.com/the1812/Bilibili-Evolved into preview-fixes
This commit is contained in:
commit
9d6e11452b
@ -32,6 +32,9 @@ const entry = async () => {
|
|||||||
if (target.hasAttribute('click-title')) {
|
if (target.hasAttribute('click-title')) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (target.hasAttribute('data-pics')) {
|
||||||
|
return
|
||||||
|
}
|
||||||
if (
|
if (
|
||||||
[
|
[
|
||||||
'bili-rich-text__action',
|
'bili-rich-text__action',
|
||||||
|
|||||||
@ -141,6 +141,9 @@ const entry = async () => {
|
|||||||
url: string,
|
url: string,
|
||||||
...restArgs: unknown[]
|
...restArgs: unknown[]
|
||||||
) {
|
) {
|
||||||
|
if (url === undefined || url === null) {
|
||||||
|
return original.call(this, data, unused, url, ...restArgs)
|
||||||
|
}
|
||||||
const resolvedUrl = (() => {
|
const resolvedUrl = (() => {
|
||||||
try {
|
try {
|
||||||
return new URL(url, location.origin + location.pathname).toString()
|
return new URL(url, location.origin + location.pathname).toString()
|
||||||
|
|||||||
@ -7,7 +7,8 @@ import { DownloadVideoOutput } from '../../../../components/video/download/types
|
|||||||
export const plugin: PluginMetadata = {
|
export const plugin: PluginMetadata = {
|
||||||
name: 'downloadVideo.outputs.idm',
|
name: 'downloadVideo.outputs.idm',
|
||||||
displayName: '下载视频 - IDM 输出支持',
|
displayName: '下载视频 - IDM 输出支持',
|
||||||
description: '为下载视频增加 IDM 输出支持.',
|
description:
|
||||||
|
'为下载视频增加 IDM 输出支持,建议配合 [ef2.exe](https://github.com/MotooriKashin/ef2) 以简化操作、保留文件名.',
|
||||||
setup: ({ addData }) => {
|
setup: ({ addData }) => {
|
||||||
addData('downloadVideo.outputs', (outputs: DownloadVideoOutput[]) => {
|
addData('downloadVideo.outputs', (outputs: DownloadVideoOutput[]) => {
|
||||||
outputs.push({
|
outputs.push({
|
||||||
|
|||||||
@ -95,11 +95,11 @@ export abstract class PlayerAgent
|
|||||||
}
|
}
|
||||||
// 关灯状态 && 要开灯 -> 开灯
|
// 关灯状态 && 要开灯 -> 开灯
|
||||||
if (on && isCurrentLightOff) {
|
if (on && isCurrentLightOff) {
|
||||||
this.nativeApi.setLightOff(true)
|
this.nativeApi.setLightOff(false)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if (!on && !isCurrentLightOff) {
|
if (!on && !isCurrentLightOff) {
|
||||||
this.nativeApi.setLightOff(false)
|
this.nativeApi.setLightOff(true)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user