AC-Rotate

ACが斜めに回転します(labelクラスすべて)

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         AC-Rotate
// @namespace    https://ruku.tellpro.net/
// @version      2025-05-29
// @description  ACが斜めに回転します(labelクラスすべて)
// @author       ruku
// @match        https://atcoder.jp/contests/*/submissions/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=atcoder.jp
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // 回転スタイルの定義を追加
    const style = document.createElement("style");
    style.textContent = `
    @keyframes rotateDiagonal {
        0% {
            transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
        }
        100% {
            transform: rotateX(3600deg) rotateY(3600deg) rotateZ(3600deg);
        }
    }

    .diagonal-rotate {
        display: inline-block;
        animation: rotateDiagonal 5s linear infinite;
        transform-style: preserve-3d;
    }
    `;
    document.head.appendChild(style);

    // labelクラスを持つすべての要素に斜め回転スタイルを適用
    document.querySelectorAll('.label').forEach(el => {
        el.classList.add('diagonal-rotate');
    });
})();