FLOORP-3D-AUDIO by haruu
本スクリプトは、Web Audio APIを使用してWebページ上のメディア音声に3D空間定位(HRTF)やイコライザー、コンプレッサー処理を施すバックグラウンド処理コードです。ポップアップ画面やストレージの設定変更と連動し、ノーマル、ASMR、シアター、ピンポイントといったモードに応じた音響バランスを自動調整。DOMの変化を監視して新規に読み込まれた動画や音声にも自動でエフェクトを適用し、臨場感あふれるサウンド体験を提供します。注意スペックが低いPCで裏で再生すると音がかくつく可能性があります
2 Users2 Users
Extension Metadata
Screenshots
About this extension
This script operates as a "content script" for the extension and consists primarily of the following mechanisms and functions:
1. Prevention of Multiple Executions and Initialization
Multiple-Launch Guard: Uses the
Storage Integration: Asynchronously loads user settings (mode, audio depth, bass/treble intensity, VR position, etc.) from the extension's storage (
AudioContext and Audio Effect Chain
Utilizing the Web Audio API, the script connects (routes) the following filters and effects in sequence to the audio data:
BiquadFilter (Equalizer):
Bass: Adjusts the low-frequency range (140Hz and below) using a low-shelf filter.
Mid: Boosts vocal clarity using a peaking filter (2200Hz).
Treble: Adjusts for crisp high frequencies using a high-shelf filter (6000Hz).
DynamicsCompressor (Compressor): Prevents audio distortion and sudden volume spikes, while normalizing the overall volume level.
Panner (3D Spatial Positioning): Uses an HRTF (Head-Related Transfer Function) model to calculate and update coordinates in real-time, creating a 3D audio effect based on the position of video/audio elements on the screen or user-specified coordinates (within a VR space).
GainNode (Volume Control): Adjusts volume balance and reverb characteristics for each mode.
Mode-Specific Audio Presets
The
Normal: Standard spatial audio and balanced equalization.
Pin: Allows you to test if the add-on is active using a "Pin" signal. ASMR: Optimizes compressors and filters to highlight subtle sounds while preventing audio distortion.
Theater: Creates a cinematic sense of depth and expansive surround sound.
Real-time monitoring and synchronization
DOM monitoring: Uses a combination of
Frame-by-frame coordinate updates: Uses
Settings and message monitoring: Receives storage changes (
Supports four languages: Japanese, English, Chinese, and Korean.
1. Prevention of Multiple Executions and Initialization
Multiple-Launch Guard: Uses the
window.hasAudioEnhancerRunning flag to prevent the script from executing multiple times within the same tab.Storage Integration: Asynchronously loads user settings (mode, audio depth, bass/treble intensity, VR position, etc.) from the extension's storage (
storage.local) to determine initial values. AudioContext and Audio Effect Chain
Utilizing the Web Audio API, the script connects (routes) the following filters and effects in sequence to the audio data:
BiquadFilter (Equalizer):
Bass: Adjusts the low-frequency range (140Hz and below) using a low-shelf filter.
Mid: Boosts vocal clarity using a peaking filter (2200Hz).
Treble: Adjusts for crisp high frequencies using a high-shelf filter (6000Hz).
DynamicsCompressor (Compressor): Prevents audio distortion and sudden volume spikes, while normalizing the overall volume level.
Panner (3D Spatial Positioning): Uses an HRTF (Head-Related Transfer Function) model to calculate and update coordinates in real-time, creating a 3D audio effect based on the position of video/audio elements on the screen or user-specified coordinates (within a VR space).
GainNode (Volume Control): Adjusts volume balance and reverb characteristics for each mode.
Mode-Specific Audio Presets
The
applyModeSettingsToElement function dynamically switches parameters based on the selected mode.Normal: Standard spatial audio and balanced equalization.
Pin: Allows you to test if the add-on is active using a "Pin" signal. ASMR: Optimizes compressors and filters to highlight subtle sounds while preventing audio distortion.
Theater: Creates a cinematic sense of depth and expansive surround sound.
Real-time monitoring and synchronization
DOM monitoring: Uses a combination of
MutationObserver and periodic timers (setInterval) to detect video and audio elements (such as players on YouTube or various streaming sites) that are dynamically added later, automatically applying effects to them. Frame-by-frame coordinate updates: Uses
requestAnimationFrame to ensure the 3D audio listener and source positions smoothly track changes in element locations or pinned coordinates on the page. Settings and message monitoring: Receives storage changes (
storage.onChanged) and runtime messages (runtime.onMessage)—such as those sent from the popup—in real-time, instantly applying changes to sound quality or modes without requiring a page reload.Supports four languages: Japanese, English, Chinese, and Korean.
Rated 0 by 0 reviewers
Permissions and data
Required permissions:
- Access browser tabs
- Access your data for all websites
Optional permissions:
- Access your data for all websites
Data collection:
- The developer says this extension doesn't require data collection.
More information
- Add-on Links
- Version
- 3.0.1
- Size
- 437.15 KB
- Last updated
- 10 days ago (Nov 9, 2026)
- Related Categories
- License
- All Rights Reserved
- Version History
- Add to collection
ABEMA
ほかにも対応していない可能性があります。
具体的に動画の読み込みができなくなる遅くなるなどがあります