Created
          October 19, 2025 09:33 
        
      - 
      
- 
        Save CesarGallego/31d836bcd00088282bda8b9f1a876a1f to your computer and use it in GitHub Desktop. 
    No asistente campus UNIR
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // ==UserScript== | |
| // @name No asistente | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2025-10-19 | |
| // @description try to take over the world! | |
| // @author César Gallego | |
| // @match https://campusonline.unir.net/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=unir.net | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| const selector = '.ubot-webcomponent'; | |
| // Función que intenta ocultar el elemento si existe | |
| const tryHide = () => { | |
| const el = document.querySelector(selector); | |
| if (el) { | |
| el.style.display = 'none'; | |
| console.log('Elemento ocultado:', selector); | |
| return true; | |
| } | |
| return false; | |
| }; | |
| // Si ya está en el DOM, lo ocultamos directamente | |
| if (tryHide()) return; | |
| // Si no, observamos el documento hasta que aparezca | |
| const observer = new MutationObserver(() => { | |
| if (tryHide()) observer.disconnect(); // lo ocultamos y dejamos de observar | |
| }); | |
| observer.observe(document.body, { | |
| childList: true, | |
| subtree: true, | |
| }); | |
| })(); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment