View source for MediaWiki:Gadget-oneko.js
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
// oneko.js
// Copyright © 2022 adryd
// SPDX-License-Identifier: MIT
// https://github.com/adryd325/oneko.js
// compiled to es5 with babel because mediawiki is insane and needs es5
(function oneko() {
var isReducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)") === true || window.matchMedia("(prefers-reduced-motion: reduce)").matches === true;
if (isReducedMotion) return;
var nekoEl = document.createElement("div");
var nekoPosX = 32;
var nekoPosY = 32;
var mousePosX = 0;
var mousePosY = 0;
var frameCount = 0;
var idleTime = 0;
var idleAnimation = null;
var idleAnimationFrame = 0;
var nekoSpeed = 10;
000
1:0
Return to MediaWiki:Gadget-oneko.js.