AC-Rotate

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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');
    });
})();