-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
796 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { defineComponentMetadata } from '@/components/define' | ||
import { liveUrls } from '@/core/utils/urls' | ||
|
||
const id = 'web-player-module-area-mask-panel' | ||
const entry = async () => { | ||
const observer = new MutationObserver(mutations => { | ||
mutations.forEach(mutation => { | ||
mutation.addedNodes.forEach(node => { | ||
if ((node as Element).id === id) { | ||
node.parentNode?.removeChild(node) | ||
observer.disconnect() | ||
} | ||
}) | ||
}) | ||
}) | ||
observer.observe(document.body, { childList: true, subtree: true }) | ||
} | ||
|
||
export const component = defineComponentMetadata({ | ||
name: 'removeLiveMaskPanel', | ||
displayName: '删除直播马赛克遮罩', | ||
author: { | ||
name: 'Liki4', | ||
link: 'https://github.com/Liki4', | ||
}, | ||
tags: [componentsTags.live, componentsTags.style], | ||
description: { | ||
'zh-CN': '删除观看直播时某些分区的马赛克遮罩.', | ||
}, | ||
entry, | ||
reload: entry, | ||
urlInclude: liveUrls, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.