greasemonkey

Remove nonio popup

remove_nonio_popup.user.js

// ==UserScript==
// @name         Remove Nonio Popup
// @author       
// @namespace    
// @homepage     
// @description  Remove nonio popup
// @version      
// @supportURL   
// @match        https://*.aquelamaquina.pt/*
// @match        https://*.xl.pt/*
// @match        https://*.publico.pt/*
// @match        https://*.sapo.pt/*
// @match        https://*.blitz.pt/*
// @match        https://*.visao.pt/*
// @match        https://*.expressoemprego.pt/*
// @match        https://*.cmjornal.pt/*
// @match        https://*.record.pt/*
// @match        https://*.jornaldenegocios.pt/*
// @match        https://*.jn.pt/*
// @match        https://*.dn.pt/*
// @match        https://*.tsf.pt/*
// @match        https://*.sabado.pt/*
// @match        https://*.ojogo.pt/*
// @match        https://*.dinheirovivo.pt/*
// @match        https://*.iol.pt/*
// @match        https://*.flash.pt/*
// @match        https://*.vidas.pt/*
// @match        https://*.maxima.pt/*
// @grant        none
// ==/UserScript==

function applyStuff(){
  //console.log("Is ready");
  var stringified_style = JSON.stringify(document.getElementsByTagName("body")[0].style );
  
  if( stringified_style != "{}"){
    console.log("Applied stuff");
    console.log( stringified_style );
    var element = document.getElementsByTagName("iframe");
    var index;

    for (index = element.length - 1; index >= 0; index--) {
      element[index].parentNode.removeChild(element[index]);
    } 
    document.getElementsByTagName("body")[0].style="";
  }
}

// call each second
window.setInterval( applyStuff , 300);

greasemonkey (last edited 2019-08-27 11:22:12 by localhost)