From 801fa9982acb6c4677a861b340663273312471bb Mon Sep 17 00:00:00 2001 From: pob <36568800+pobpos@users.noreply.github.com> Date: Sat, 17 Feb 2024 16:33:49 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E3=82=A2?= =?UTF-8?q?=E3=82=A6=E3=83=88=E3=81=AE=E6=94=B9=E8=89=AF=E3=81=A8readme?= =?UTF-8?q?=E3=81=AE=E5=86=85=E5=AE=B9=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 15 ++++++++++++--- background.js | 7 +------ content.js | 20 +------------------- manifest.json | 2 +- popup.html | 2 +- styles.css | 46 ---------------------------------------------- 6 files changed, 16 insertions(+), 76 deletions(-) diff --git a/README.md b/README.md index 69c57b5..6cb2fb0 100644 --- a/README.md +++ b/README.md @@ -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の表示/非表示を切り替え diff --git a/background.js b/background.js index cc5bb41..7286550 100644 --- a/background.js +++ b/background.js @@ -1,9 +1,4 @@ chrome.action.onClicked.addListener(function(tab) { // ここにアイコンクリック時の動作を実装します // 例: ポップアップを表示する、特定のページに移動するなど -}); -/* -chrome.runtime.onInstalled.addListener(() => { - console.log("YouTube Video Enhancer has been installed."); -}); -*/ +}); \ No newline at end of file diff --git a/content.js b/content.js index 5ccbc0d..66d826a 100644 --- a/content.js +++ b/content.js @@ -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'); } -}); - - +}); \ No newline at end of file diff --git a/manifest.json b/manifest.json index 61aaaf5..7185139 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "manifest_version": 3, - "name": "YouTube GUI Canceler", + "name": "YTP UI CANCELER", "version": "1.0.3", "description": "This extension is useful for screen captures.", "permissions": ["activeTab"], diff --git a/popup.html b/popup.html index 34324b7..cfb2803 100644 --- a/popup.html +++ b/popup.html @@ -5,7 +5,7 @@
This extension is useful when recording youtube screens with capture software, etc. By pressing the P key, you can hide the playback bar on the player, the channel icons in the lower right corner, etc.