Skip to content

Instantly share code, notes, and snippets.

@mktwo
mktwo / YTLimiter.js
Last active July 21, 2023 09:39
A userscript that compresses YouTube audio so loud sections (such as intros that are at an average of 0dB when the video is at -6dB) aren't as awful.
// ==UserScript==
// @name YouTube Audio Compressor/Limiter
// @description A somewhat passable solution to YouTubers who don't know how to look at a dB meter while editing their videos... (Makes very loud sections not as deafening!)
// @author Tim (@ineedfocus)
// @include https://www.youtube.com/*
// @include http://www.youtube.com/*
// ==/UserScript==
//Apply compression to YouTube video
function fixAudio(element) {