Bro, you need to do something with youtube SPF, because it breaks your script on new polymer design and legacy design. Script frequently stop working and youtube show always 480p. Find the way to limit the spf.js functionality without destroying the page itself. Here an example for legacy design (ONLY): https://greasyfork.org/en/scripts/16935-disable-spf-youtube
But this script use "unsafeWindow". Therefore, the use of this script poses a danger to users.
Can You make your own optional Youtube SPF Killswitch?
Bro, you need to do something with youtube SPF, because it breaks your script on new polymer design and legacy design. Script frequently stop working and youtube show always 480p. Find the way to limit the spf.js functionality without destroying the page itself.
Here an example for legacy design (ONLY):
https://greasyfork.org/en/scripts/16935-disable-spf-youtube
But this script use "unsafeWindow". Therefore, the use of this script poses a danger to users.
Can You make your own optional Youtube SPF Killswitch?