Code adapted from https://github.com/inotia00/revanced-patches/commit/5f35e51a2779f71f27c3f9be62fbe83b7bc9cfe7
Fix Redgifs