// ==UserScript== // @name 偶像大师闪耀色彩跳过培育动画 [大概双端适配?] // @namespace http://tampermonkey.net/ // @version 0.4 // @description 跳过培育动画自用,不懂代码,gpt写的.jpg icon引用的萌娘百科图片 // @author ER@关注b站EreRe_看折纸纸片人谢谢喵 // @match https://shinycolors.enza.fun/produce/* // @icon https://img.moegirl.org.cn/common/thumb/4/41/IM%40S_SC_Swan_Mark.svg/99px-IM%40S_SC_Swan_Mark.svg.png // @grant none // @license MIT // @downloadURL none // ==/UserScript== (function() { 'use strict'; const buttonA = document.createElement('button'); buttonA.textContent = 'A'; buttonA.style.cssText = ` position: absolute; bottom: 3vw; left: 41vw; opacity: 0.4; background-color: gray; color: white; font-weight: bold; border: none; padding: 0; cursor: pointer; width: 8vw; height: 8vw; `; const buttonB = document.createElement('button'); buttonB.textContent = 'B'; buttonB.style.cssText = ` position: absolute; bottom: 3vw; left:51vw; opacity: 0.4; background-color: gray; color: white; font-weight: bold; border: none; padding: 0; cursor: pointer; width: 8vw; height: 8vw; `; document.body.appendChild(buttonA); document.body.appendChild(buttonB); const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); buttonA.addEventListener('click', function() { if (isMobile) { window.location.href = 'https://shinycolors.enza.fun/produce/?'; } else { window.location.href = 'https://shinycolors.enza.fun/produce/?a='; } }); buttonB.addEventListener('click', function() { if (isMobile) { window.location.href = 'https://shinycolors.enza.fun/produce/?#'; } else { window.location.href = 'https://shinycolors.enza.fun/produce/?a=#'; } }); })();