Skip to content

Instantly share code, notes, and snippets.

@rdnt
Last active April 12, 2025 20:31
Show Gist options
  • Select an option

  • Save rdnt/fbf802fb2e913e3e844325f6ffca615f to your computer and use it in GitHub Desktop.

Select an option

Save rdnt/fbf802fb2e913e3e844325f6ffca615f to your computer and use it in GitHub Desktop.
Ungreedify.js: Disable Spotify song title/artist text scrolling animation on the bottom left to save CPU cycles.
// ungreedify.js
//
// Spotify (at least on Linux) uses A FULL CPU CORE trying to render the text scrolling animation on the bottom left panel,
// if the text is too big to fit. Very greedy.
// This extension disables the scrolling text for both the song title and the artist name.
// Presumably, the Spotify animation is not using CSS transforms, i.e. other non-CPU-efficient properties
// are being animated instead.
// Or, perhaps, the hardware acceleration being disabled (with no way to turn it on, again, on Linux)
// is at fault, forcing the CPU to render this animation (very inefficient indeed).
// Installation:
// 1. Place ungreedify.js into `~/.config/spicetify/Extensions`
// 2. Run `spicetify config extensions ungreedify.js && spicetify apply`
// 3. Enjoy your fans no longer becoming angry if you left a song paused and went to sleep.
function initializeUngreedify() {
window.setInterval(function() {
document.querySelectorAll(".main-trackInfo-contentWrapper").forEach((el) => {
el.style.width = "100%";
el.style.overflow = "hidden";
});
}, 1000);
}
window.addEventListener('load', initializeUngreedify, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment