This script is 100% safe and will take your ambient experience to the next level!
< Feedback on Youtube Ambient Pro +
you can easily make it persistent by saving the state to localStorage and re-applying it when YouTube navigates...
// replace the initial state variable at the top;
let isAmbientEnabled = localStorage.getItem('ytAmbientProPlusState') === 'true';
// inside toggleAmbientMode(), save the state whenever it's clicked;
isAmbientEnabled = !isAmbientEnabled;
localStorage.setItem('ytAmbientProPlusState', isAmbientEnabled);
// inside your 'yt-navigate-finish' event listener, re-apply the effect;
setTimeout(() => {
const ambi = document.querySelector("#cinematics.ytd-watch-flexy");
if (ambi && isAmbientEnabled) {
ambi.style.cssText = 'filter: saturate(300%) blur(10px) contrast(1.2) brightness(1.7); transform: scale(2.5); opacity: 1; mix-blend-mode: lighten; transition: all 500ms ease-in-out; transition-delay: 0.5s;';
}
}, 1500);
also some controls on how intense the ambience is??
can you make it persistant?? i hate how it resets after refresh