Cursos UDV - Arreglar Notificaciones

Este script me sirve para arreglar las notificaciones que no aparecen los iconos

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Cursos UDV - Arreglar Notificaciones
// @description  Este script me sirve para arreglar las notificaciones que no aparecen los iconos
// @version      2.0.0

// @author       Fernando Barrios (https://github.com/jfernandogt)
// @match        https://www.cursos.udv.edu.gt/*
// @match        https://cursos.udv.edu.gt/*
// @run-at       document-start
// @license      MIT; https://opensource.org/licenses/MIT

// @namespace    https://udv.edu.gt
// @icon         https://cursos.udv.edu.gt/pluginfile.php/1/theme_snap/favicon/1731474836/favicon%2520%25288%2529.ico

// @grant        GM_addStyle
// ==/UserScript==

/*
    Author: Put your name here.
    Github: Put your GitHub repository URL or GitHub user page here.
    Discord: Put your discord server support URL or your discord username here. 
    Greasyfork: Put your Greasyfork profile page URL here.
    Ko-fi: Put your ko-fi donation URL here.
    Website: Put your website URL here. (One you own or made.)
*/

(function() {
    'use strict';

    GM_addStyle(".description img {display: none !important;}");

    GM_addStyle("iframe {display: none !important;}");
  
    const iframes = document.querySelectorAll('iframe');

    window.addEventListener('load', function() {
        // Seleccionar todos los elementos iframe
        const iframes = document.querySelectorAll('iframe');

        // Iterar sobre cada iframe
        iframes.forEach(iframe => {
            // Obtener el elemento padre del iframe
            const parent = iframe.parentNode;

            // Eliminar el elemento padre del DOM
            if (parent) {
                parent.remove();
            }
        });
    });


})();