Simple Youtube Surround

When using earphones or headsets, Makes the youtube sound more surrounded ( It's better when you listen to music )

目前為 2022-11-14 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
KBluePurple
評價
0 0 0
版本
0.2
建立日期
2022-11-13
更新日期
2022-11-14
尺寸
1.7 KB
授權條款
MIT
腳本執行於

# youtube-delay

Makes the youtube sound more surrounded

## Usage

Using UserScript:
You can install this script in https://greasyfork.org/ko/scripts/454751-simple-youtube-surround

Using DevTools:

1. Goto your video in youtube or youtube music
2. Put this code to console of DevTools

```javascript
const context = new AudioContext();
const video = document.querySelector("#movie_player > div.html5-video-container > video");
const source = context.createMediaElementSource(video);

const splitter = context.createChannelSplitter(2);
const merger = context.createChannelMerger(2);

const leftDelay = context.createDelay();
const rightDelay = context.createDelay();

leftDelay.delayTime.value = 0;
rightDelay.delayTime.value = 0.01;

source.connect(splitter);

splitter.connect(leftDelay, 0);
splitter.connect(rightDelay, 1);

leftDelay.connect(merger, 0, 0);
rightDelay.connect(merger, 0, 1);

merger.connect(context.destination);
```

If you want edit delay values use this code

```javascript
leftDelay.delayTime.value = 0;
rightDelay.delayTime.value = 0.01;
```

## How does it work?

It gives one of the right audio channels of the YouTube video a delay of 10 ms to give it a surround effect