Simple Youtube Surround

Makes the youtube sound more surrounded ( It's better when you listen to music )

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
KBluePurple
Daily installs
0
Total installs
927
Ratings
0 0 1
Version
0.2
Created
2022-11-13
Updated
2022-11-14
Size
1.59 KB
License
MIT
Applies to

# 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