Apple Music Web Optimizer

Remove backdrop-filter & box-shadow, turns blur to solid color

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
mhendaa
Daily installs
0
Total installs
0
Ratings
0 0 0
Version
1.0
Created
2026-05-14
Updated
2026-05-14
Size
1.21 KB
License
MIT
Applies to

Overview

Apple Music Web Optimizer makes the Apple Music web player feel snappier and lighter by removing GPU-heavy visual effects. It replaces backdrop-filter blur (the "liquid glass" frosted effect) with a solid semi-transparent color and strips away all box-shadow properties site-wide. The result is smoother scrolling, faster animations, and reduced CPU/GPU usage — especially noticeable on low-end devices and laptops running on battery.


What It Does

  • Removes all backdrop-filter blur — the frosted glass effect Apple uses heavily on sidebars, player bars, and overlays. These are replaced with a solid dark background (rgba(18, 18, 18, 0.85)) that preserves the visual hierarchy without the GPU cost.
  • Eliminates all box-shadow — complex shadows on cards, buttons, and artwork containers are set to none, reducing repaint overhead during scroll and animations.
  • Watches for dynamic content — Apple Music is a single-page app (SPA) built with Svelte. New elements injected into the DOM after navigation are automatically processed, so the optimization stays active across all pages.


Why This Works

CSS properties like backdrop-filter: blur() and large box-shadow values force the browser to re-render pixels on every frame during scroll or animation. On high-resolution displays, this can drop frame rates below 10 FPS. By replacing blur with a simple background-color and removing shadows entirely, the browser's compositor has far less work to do — resulting in a noticeably smoother experience.


Installation

  1. Make sure you have a userscript manager installed:
  2. Click the Install button on this page.
  3. Visit music.apple.com — the script runs automatically.


Customization

The replacement color for the blur effect is defined by the variable bg inside the script. The default is:

var bg = 'rgba(18, 18, 18, 0.85)';

You can change this to any valid CSS color value:

  • For a lighter look: rgba(255, 255, 255, 0.8)
  • For full opacity dark: #1a1a1a
  • For complete transparency (no replacement): transparent


Limitations

This script focuses on CSS-level optimizations. It does not touch:

  • Artwork glow/shadow overlays (radiosity, contrast gradients, refraction strokes, and sheen effects) on album detail pages — these require additional element hiding rules.
  • Ambient video backgrounds that autoplay behind album artwork.
  • JavaScript bundle size or network requests.

For a more aggressive optimization that also removes those artwork effects, consider extending this script or combining it with CSS rules that target .artwork__radiosity, .artwork__contrast-gradient, .artwork__base-stroke, .artwork__refraction-stroke, and .artwork__sheen-overlay.


Compatibility

Tested on latest versions of Chrome, Firefox, and Edge. Works with Tampermonkey, Violentmonkey, and Greasemonkey. The script targets https://music.apple.com/* only, so it will not affect any other websites.


License

This script is released into the public domain. Feel free to modify, distribute, and use it however you like — no attribution required.


Changelog

Version 1.0

  • Initial release
  • Removes backdrop-filter blur, replaces with solid color
  • Removes all box-shadow properties
  • MutationObserver for SPA navigation support