Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
Log in
Preview of FLOORP-3D-AUDIO

FLOORP-3D-AUDIO by haruu

本スクリプトは、Web Audio APIを使用してWebページ上のメディア音声に3D空間定位(HRTF)やイコライザー、コンプレッサー処理を施すバックグラウンド処理コードです。ポップアップ画面やストレージの設定変更と連動し、ノーマル、ASMR、シアター、ピンポイントといったモードに応じた音響バランスを自動調整。DOMの変化を監視して新規に読み込まれた動画や音声にも自動でエフェクトを適用し、臨場感あふれるサウンド体験を提供します。注意スペックが低いPCで裏で再生すると音がかくつく可能性があります

0 (0 reviews)0 (0 reviews)
2 Users2 Users
Download Firefox and get the extension
Download file

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 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.
Developer comments
一部サイトに対応していません。
ABEMA 

ほかにも対応していない可能性があります。
具体的に動画の読み込みができなくなる遅くなるなどがあります
Rated 0 by 0 reviewers
Log in to rate this extension
There are no ratings yet

Star rating saved

5
0
4
0
3
0
2
0
1
0
No reviews yet
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.
Learn more
More information
Add-on Links
  • Copy add-on ID
Version
3.0.1
Size
437.15 KB
Last updated
10 days ago (Nov 9, 2026)
Related Categories
  • Photos, Music & Videos
  • Games & Entertainment
License
All Rights Reserved
Version History
  • See all versions
Add to collection
Report this add-on
Go to Mozilla's homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Download

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

Latest Builds

  • Nightly
  • Beta

Firefox for Business

  • Enterprise

Community

  • Connect
  • Contribute
  • Developer

Follow

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version.