Drawaria Optimizer (Safe Performance Mode)

Reduce animaciones y carga gráfica para mejorar rendimiento en Drawaria

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Drawaria Optimizer (Safe Performance Mode)
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Reduce animaciones y carga gráfica para mejorar rendimiento en Drawaria
// @author       Optimizer
// @match        *://*drawaria*/*
// @grant        none
// @run-at       document-end
// ==/UserScript==

(function() {
    'use strict';

    console.log("⚡ Drawaria Optimizer activado");

    // 1️⃣ Desactivar animaciones y efectos pesados
    const style = document.createElement("style");
    style.innerHTML = `
        * {
            animation: none !important;
            transition: none !important;
            box-shadow: none !important;
        }
        canvas {
            image-rendering: pixelated !important;
        }
    `;
    document.head.appendChild(style);

    // 2️⃣ Reducir FPS (menos carga de CPU)
    const originalRAF = window.requestAnimationFrame;
    window.requestAnimationFrame = function(callback) {
        return originalRAF(() => {
            setTimeout(callback, 33); // Limita a ~30 FPS
        });
    };

    // 3️⃣ Pausar pestaña si está en segundo plano (ahorra recursos)
    document.addEventListener("visibilitychange", function() {
        if (document.hidden) {
            console.log("⏸️ Pestaña en segundo plano - reduciendo actividad");
        }
    });

})();