Cursos UDV - Arreglar Notificaciones

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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();
            }
        });
    });


})();