-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into SnorlaxH-patch-1
- Loading branch information
Showing
44 changed files
with
1,344 additions
and
241 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
name: Bug report | ||
about: Report a bug | ||
title: "[BUG]" | ||
labels: ๋ฒ๊ทธ | ||
assignees: '' | ||
|
||
--- | ||
|
||
### **๋ฒ๊ทธ ๋ด์ฉ** | ||
|
||
<!-- ๋ฐ์ํ ๋ฒ๊ทธ๋ฅผ ์์ธํ ์ค๋ช ํด์ฃผ์ธ์. --> | ||
<!-- ํน์ํ ์กฐ๊ฑด์ด ์๋ ๊ฒฝ์ฐ ์ด๋ฏธ์ง๋ ์์์ด ์๋ค๋ฉด ๋์ฑ ๋นจ๋ฆฌ ํด๊ฒฐ ๋ ์ ์์ด์. --> | ||
|
||
### **ํ๊ฒฝ** | ||
|
||
version: | ||
os: | ||
browser: | ||
|
||
<!--์ฌ์ฉ ์ค์ธ ํ๊ฒฝ์ ์์ฑํด์ฃผ์ธ์. --> | ||
|
||
### **๊ธฐํ** | ||
|
||
<!--ํน์ ์๊ฐํ์ ํด๊ฒฐ ๋ฐฉ๋ฒ์ด๋ ๋์์ฑ ๊ฐ์๊ฒ ์์ผ์๋ค๋ฉด ๊ณต์ ํด์ฃผ์ธ์. --> | ||
<!--์ฐธ๊ณ ์ ํฐ ๋์์ด ๋ฉ๋๋ค! --> | ||
<!--์์ผ์๋ค๋ฉด ํด๋น ํญ๋ชฉ์ ์ญ์ ํด์ฃผ์ธ์. --> |
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,19 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: "[Feature]" | ||
labels: ์์ด๋์ด | ||
assignees: '' | ||
|
||
--- | ||
|
||
### **์ ์** | ||
|
||
<!-- ์ ์ํ์ค ๋ด์ฉ์ ์์ธํ ์ค๋ช ํด์ฃผ์ธ์. --> | ||
<!-- ๋ง์ฝ ์ฐธ๊ณ ํด๋ณผ๋งํ ์ด๋ฏธ์ง๋ ์์ ๋ฑ์ด ์๋ค๋ฉด ์ดํดํ๋๋ฐ ๋์ฑ ์ฌ์ธ ์ ์์ด์. --> | ||
|
||
### **๊ธฐํ** | ||
|
||
<!--ํน์ ์๊ฐํ์ ๊ตฌํ๋ฐฉ๋ฒ ๊ฐ์๊ฒ ์์ผ์๋ค๋ฉด ๊ณต์ ํด์ฃผ์ธ์. --> | ||
<!--์์ผ์๋ค๋ฉด ํด๋น ํญ๋ชฉ์ ์ญ์ ํด์ฃผ์ธ์. --> | ||
<!--PR๋ ํ๋ก๊ทธ๋จ์ ์ฑ์ฅ์ ํฐ ๋์์ด ๋ฉ๋๋ค. --> |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,6 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:recommended" | ||
] | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.live_chatting_list_wrapper__a5XTV .name_text__yQG50 { | ||
/* .live_chatting_list_wrapper__a5XTV .name_text__yQG50 { | ||
color: var(--czp-chat-name) !important; | ||
} | ||
.live_chatting_list_wrapper__a5XTV .live_chatting_message_text__DyleH { | ||
color: var(--czp-chat-text) !important; | ||
} | ||
} */ |
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 |
---|---|---|
@@ -1,5 +1,50 @@ | ||
import { useEffect } from "react"; | ||
import "./Global.css"; | ||
import { | ||
INPUT_UI_LIST, | ||
VIDEO_FULL_BTN, | ||
VIDEO_VIEW_BTN, | ||
VIDEO_VOLUME_BTN, | ||
} from "../constants/class"; | ||
import { PLAYER_KEY_CONTROL } from "../constants/storage"; | ||
|
||
export default function Global() { | ||
useEffect(() => { | ||
// Feat: ํ๋ ์ด์ปค ํค ๋จ์ถํค ํ์ฑํ ========================================================= | ||
chrome.storage.local.get(PLAYER_KEY_CONTROL, (res) => { | ||
// ์์์ pip ๋ฒํผ ์ถ๊ฐ ์ฒดํฌ๋ก ์ฌ์์ฑ ๊ฑฑ์ ์ ์ํด๋ ๊ด์ฐฎ๋ค. | ||
if (res[PLAYER_KEY_CONTROL]) { | ||
document.addEventListener("keydown", (event) => { | ||
const { target } = event; | ||
if (target instanceof HTMLElement) | ||
if (!INPUT_UI_LIST.includes(target.className) && !event.ctrlKey) { | ||
// T : ๋์ ํ๋ฉด | ||
if (event.key === "t" || event.key === "T") { | ||
const viewModeBtn = document.querySelector( | ||
VIDEO_VIEW_BTN | ||
) as HTMLElement; | ||
if (viewModeBtn) viewModeBtn.click(); | ||
} | ||
|
||
// F : ์ ์ฒด ํ๋ฉด | ||
if (event.key === "f" || event.key === "F") { | ||
const fullScreenBtn = document.querySelector( | ||
VIDEO_FULL_BTN | ||
) as HTMLElement; | ||
if (fullScreenBtn) fullScreenBtn.click(); | ||
} | ||
// M : ์์๊ฑฐ | ||
if (event.key === "m" || event.key === "M") { | ||
const muteBtn = document.querySelector( | ||
VIDEO_VOLUME_BTN | ||
) as HTMLElement; | ||
if (muteBtn) muteBtn.click(); | ||
} | ||
} | ||
}); | ||
} | ||
}); | ||
}, []); | ||
|
||
return <></>; | ||
} |
Oops, something went wrong.