WIP Mostly taken from π https://github.com/UltiRequiem/sergif/tree/de9a3c065dd7bda32d9632b5ce0a887cb0f9a30a/src/utils/browser