-
Notifications
You must be signed in to change notification settings - Fork 0
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
6 changed files
with
16 additions
and
76 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 |
---|---|---|
@@ -1,4 +1,13 @@ | ||
youtube player ui cenceler chrome拡張機能 | ||
# YouTube player gui cenceler | ||
|
||
usage | ||
"p" キーを押してuiの表示/非表示を切り替え | ||
## Description | ||
|
||
YouTube player gui cenceler は、YouTubeのプレイヤー上に配置されている再生バーや各種ボタン、チャンネル登録ボタン、全画面時に上部に表示される動画タイトル等を非表示にできるChromeの拡張機能です。 | ||
|
||
## How to start to use? | ||
|
||
editing... | ||
|
||
## Usage | ||
|
||
"p" キーを押してguiの表示/非表示を切り替え |
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,9 +1,4 @@ | ||
chrome.action.onClicked.addListener(function(tab) { | ||
// ここにアイコンクリック時の動作を実装します | ||
// 例: ポップアップを表示する、特定のページに移動するなど | ||
}); | ||
/* | ||
chrome.runtime.onInstalled.addListener(() => { | ||
console.log("YouTube Video Enhancer has been installed."); | ||
}); | ||
*/ | ||
}); |
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,23 +1,5 @@ | ||
// contentScript.js | ||
/* | ||
document.addEventListener('DOMContentLoaded', function() { | ||
// 再生バーの要素を取得 | ||
const controlBar = document.querySelector('.ytp-chrome-bottom'); | ||
if (controlBar) { | ||
// プレイヤーの外側に再生バーを配置 | ||
controlBar.style.position = 'fixed'; | ||
controlBar.style.bottom = '0'; | ||
controlBar.style.width = '100%'; | ||
} | ||
}); | ||
*/ | ||
|
||
// JavaScript | ||
document.addEventListener('keydown', function(event) { | ||
if (event.key === 'p') { | ||
document.body.classList.toggle('youtube-extension-active'); | ||
} | ||
}); | ||
|
||
|
||
}); |
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