(()=>{var p=document.createElement("button");p.textContent="Mods";p.style.position="fixed";p.style.bottom="10px";p.style.left="10px";p.style.padding="10px 20px";p.style.fontSize="16px";p.style.zIndex="1000";var l=document.createElement("div");l.style.position="fixed";l.style.top="50%";l.style.left="50%";l.style.transform="translate(-50%, -50%)";l.style.display="none";l.style.zIndex="1000";l.style.backgroundColor="#3F384C";l.style.borderRadius="20px";l.style.width="500px";l.style.height="600px";var u=document.createElement("p");u.textContent="All rights reserved.";u.style.marginBottom="10px";u.style.marginLeft="10px";u.style.marginTop="10px";u.style.color="#FFFFFF";l.appendChild(u);var u=document.createElement("a");u.textContent="https://scratch.mit.edu/users/yantiks/";u.href="https://scratch.mit.edu/users/yantiks/";u.style.marginBottom="10px";u.style.marginLeft="10px";u.style.marginTop="10px";l.appendChild(u);var s=document.createElement("button");s.textContent="背景変更";s.style.display="block";s.style.marginBottom="10px";s.style.fontSize="16px";s.style.padding="10px 20px";s.style.background="#231C2F";s.style.borderRadius="20px";s.style.color="#D2BBFF";s.style.width="450px";s.style.height="45px";s.style.display="block";s.style.margin="0 auto";s.style.marginTop="5px";l.appendChild(s);var a=document.createElement("div");a.style.position="fixed";a.style.top="50%";a.style.left="50%";a.style.transform="translate(-50%, -50%)";a.style.display="none";a.style.zIndex="1001";a.style.backgroundColor="#3F384C";a.style.borderRadius="20px";a.style.width="500px";a.style.height="600px";var r=document.createElement("button");r.textContent="レインボー";r.style.display="block";r.style.marginBottom="10px";r.style.fontSize="16px";r.style.padding="10px 20px";r.style.background="#231C2F";r.style.borderRadius="20px";r.style.color="#D2BBFF";r.style.width="450px";r.style.height="45px";r.style.display="block";r.style.margin="0 auto";r.style.marginTop="10px";a.appendChild(r);r.addEventListener("click",function(){const n=document.getElementById("main");let e=0;function t(){n.style.backgroundColor=`hsl(${e}, 90%, 50%)`,e=(e+1)%360,requestAnimationFrame(t)}t()});var m=document.createElement("button");m.textContent="ナイト";m.className="NightButton";m.style.display="block";m.style.marginBottom="5px";m.style.fontSize="16px";m.style.padding="10px 20px";a.appendChild(m);let x=!1;m.addEventListener("click",function(){x?B():C(),x=!x});function C(){var n=document.getElementById("main");n.style.backgroundColor="#292929";for(var e=document.getElementsByClassName("menu"),t=0;t{const o=window.getComputedStyle(e).color;if(o==="rgb(255, 255, 255)"||o==="rgb(0, 123, 255)"){e.textContent="Using Mods";let y=0;const b=setInterval(()=>{y=(y+6)%360,e.style.color=`hsl(${y}, 90%, 50%)`},50)}})},1e3);var d=document.createElement("button");d.textContent="高度なオプション";d.style.display="block";d.style.marginBottom="5px";d.style.fontSize="16px";d.style.padding="10px 20px";d.style.background="#231C2F";d.style.borderRadius="20px";d.style.color="#D2BBFF";d.style.margin="0 auto";d.style.width="450px";d.style.height="45px";d.style.marginTop="5px";l.appendChild(d);var c=document.createElement("div");c.style.display="none";c.style.border="1px solid black";c.style.padding="10px";c.style.backgroundColor="white";c.style.position="fixed";c.style.top="100px";c.style.left="100px";c.style.zIndex="1000";document.body.appendChild(c);var g=document.createElement("button");g.textContent="履歴埋め";g.style.display="block";g.style.marginBottom="5px";g.style.fontSize="16px";g.style.padding="10px 20px";c.appendChild(g);d.addEventListener("click",function(){c.style.display=c.style.display==="none"?"block":"none"});g.addEventListener("click",function(){var n=prompt("何回履歴を埋めたいですか?:");if(isNaN(n)||n<=0){alert("有効な回数を入力してください");return}for(var e=!1,t=window.location.href,o=1;o<=n;o++)history.pushState(0,0,o==n?t:o.toString()),o==n&&(e=!0);e===!0&&alert("履歴が正常に埋まりました! "+window.location.href+" が履歴に "+n+(n==1," 回表示されるようになりました。"))});var h=document.createElement("button");h.textContent="色反転";h.style.display="block";h.style.marginBottom="5px";h.style.fontSize="16px";h.style.padding="10px 20px";c.appendChild(h);let f=!1;h.addEventListener("click",function(){f?(document.querySelectorAll("[invTouch]").forEach(function(n){n.style.backgroundColor="",n.style.color="",n.removeAttribute("invTouch")}),f=!1):(function(){function n(e,t){var o=e.split("("),y=o[1].split(")")[0].split(",");return y.forEach(function(b,v){if(v<3){var k=255-parseInt(b);y[v]=t=="color"&&k<50?120:k}}),y=y.join(","),o[0]+"("+y+")"}document.querySelectorAll("*:not([invTouch])").forEach(function(e){var t=window.getComputedStyle(e);e.style.backgroundColor=n(t.backgroundColor,"back"),e.style.color=n(t.color,"color"),e.setAttribute("invTouch","true")})}(),f=!0)});document.body.appendChild(p);alert("インストールしました");})();