Google Classroom Mod Menu

Adds a mod menu to Google Classroom for customization options

当前为 2024-10-23 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Google Classroom Mod Menu
// @namespace    http://tampermonkey.net/
// @version      0.7
// @description  Adds a mod menu to Google Classroom for customization options
// @author       Iron web10
// @match        https://classroom.google.com/*
// @grant        GM_addStyle
// @license      Iron web10
// ==/UserScript==

(function() {
    'use strict';

    // Función para cargar y ejecutar el script
    function loadScript() {
        // Cargar el script desde la URL
        fetch('https://ironweb10.github.io/nint3nd0_browser/mod-menu/classroom.js')
            .then(response => {
                if (!response.ok) throw new Error('Error al cargar el script.');
                return response.text();
            })
            .then(data => {
                // Crear un nuevo script y establecer el contenido
                const script = document.createElement('script');
                script.textContent = data; // Usar textContent en lugar de src para evitar problemas de Trusted Types
                document.body.appendChild(script); // Agregar el script al documento
                console.log('Script cargado y ejecutado con éxito!');
            })
            .catch(err => console.error('Error al cargar el script:', err));
    }

    // Esperar a que el documento esté completamente cargado antes de ejecutar el script
    window.addEventListener('load', loadScript);
})();