60 fps animation

This commit is contained in:
Isaac Shoebottom 2022-07-03 01:38:46 -03:00
parent 8717dae916
commit 96e21dfcb4

View File

@ -2,7 +2,7 @@
// @name Spotify Background Changer // @name Spotify Background Changer
// @namespace http://tampermonkey.net/ // @namespace http://tampermonkey.net/
// @source https://github.com/Glaceon575/SpotifyBackgroundSwitcher // @source https://github.com/Glaceon575/SpotifyBackgroundSwitcher
// @version 0.1.2 // @version 0.1.3
// @description Changes the background of Spotify playlists and albums in a rainbow pattern // @description Changes the background of Spotify playlists and albums in a rainbow pattern
// @author Isaac Shoebottom // @author Isaac Shoebottom
// @updateURL https://raw.githubusercontent.com/Glaceon575/SpotifyBackgroundSwitcher/master/script.js // @updateURL https://raw.githubusercontent.com/Glaceon575/SpotifyBackgroundSwitcher/master/script.js
@ -17,7 +17,7 @@ let background;
let colorInterval; let colorInterval;
const selector = ".gHImFiUWOg93pvTefeAD.xYgjMpAjE5XT05aRIezb"; const selector = ".gHImFiUWOg93pvTefeAD.xYgjMpAjE5XT05aRIezb";
const timer = 33; //in milliseconds const timer = 16; //in milliseconds
const probeTimer = 500 //in milliseconds, timer for checking for selector const probeTimer = 500 //in milliseconds, timer for checking for selector
const difference = 60; //delta between the top and bottom const difference = 60; //delta between the top and bottom