MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap
Revision 2 as of 2019-08-27 11:22:12
  • greasemonkey

greasemonkey

  • https://wiki.greasespot.net/Tutorials

  • https://wiki.greasespot.net/Greasemonkey_Manual

  • Any file that ends in .user.js is a user script.

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);
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01