MediaWiki:Gadget-oneko.js: Difference between revisions

no edit summary
(Created page with "// oneko.js // Copyright © 2022 adryd // SPDX-License-Identifier: MIT // https://github.com/adryd325/oneko.js (function oneko() { const isReducedMotion = window.matchMedia(`(prefers-reduced-motion: reduce)`) === true || window.matchMedia(`(prefers-reduced-motion: reduce)`).matches === true; if (isReducedMotion) return; const nekoEl = document.createElement("div"); let nekoPosX = 32; let nekoPosY = 32; let mousePosX = 0; let mousePosY = 0; l...")
 
No edit summary
Line 100: Line 100:
     nekoEl.style.zIndex = Number.MAX_VALUE;
     nekoEl.style.zIndex = Number.MAX_VALUE;


     let nekoFile = "./oneko.gif"
     let nekoFile = "https://wiki.vencord.dev/images/8/8c/Oneko.gif";
     const curScript = document.currentScript
     const curScript = document.currentScript
     if (curScript && curScript.dataset.cat) {
     if (curScript && curScript.dataset.cat) {