您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Elimina elementos con ID ek-overlay y ek-modal en https://cursos.canvas.uc.cl/
// ==UserScript== // @name Eliminar elementos con ID ek-overlay y ek-modal en Canvas UC // @namespace http://tampermonkey.net/ // @version 1.1 // @description Elimina elementos con ID ek-overlay y ek-modal en https://cursos.canvas.uc.cl/ // @author Tú // @match https://cursos.canvas.uc.cl/* // @icon https://www.google.com/s2/favicons?sz=64&domain=canvas.uc.cl // @license MIT // @grant none // ==/UserScript== (function() { 'use strict'; function removeElementsById() { const overlay = document.getElementById('ek-overlay'); const modal = document.getElementById('ek-modal'); if (overlay) { overlay.remove(); console.log('Elemento con ID ek-overlay eliminado'); } if (modal) { modal.remove(); console.log('Elemento con ID ek-modal eliminado'); } } // Ejecutar al cargar window.addEventListener('load', () => { removeElementsById(); // Observar si aparecen dinámicamente const observer = new MutationObserver(() => { removeElementsById(); }); observer.observe(document.body, { childList: true, subtree: true }); }); })();