From 6d911790e97f948e6357bb02c17ee4ee73fa5ff1 Mon Sep 17 00:00:00 2001 From: AutumnVN Date: Sun, 10 Dec 2023 08:05:40 +0700 Subject: [PATCH] oneko: allow oneko in reduced motion (#2018) --- src/plugins/oneko/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/oneko/index.ts b/src/plugins/oneko/index.ts index c5de470e..90a3901a 100644 --- a/src/plugins/oneko/index.ts +++ b/src/plugins/oneko/index.ts @@ -28,7 +28,8 @@ export default definePlugin({ start() { fetch("https://raw.githubusercontent.com/adryd325/oneko.js/8fa8a1864aa71cd7a794d58bc139e755e96a236c/oneko.js") .then(x => x.text()) - .then(s => s.replace("./oneko.gif", "https://raw.githubusercontent.com/adryd325/oneko.js/14bab15a755d0e35cd4ae19c931d96d306f99f42/oneko.gif")) + .then(s => s.replace("./oneko.gif", "https://raw.githubusercontent.com/adryd325/oneko.js/14bab15a755d0e35cd4ae19c931d96d306f99f42/oneko.gif") + .replace("(isReducedMotion)", "(false)")) .then(eval); },