Block adblocker warnings

Blocked warning @ NU.NL

  1. // ==UserScript==
  2. // @name Block adblocker warnings
  3. // @namespace https://marthijnhoiting.com/
  4. // @author Marthijn Hoiting
  5. // @include https://*.nu.nl/*
  6. // @version 0.1
  7. // @grant none
  8. // @license Copyright by Marthijn Hoiting
  9. // @run-at document-start
  10. // @description Blocked warning @ NU.NL
  11. // ==/UserScript==
  12. /* jshint -W097 */
  13. 'use strict';
  14.  
  15. function addGlobalStyle(css) {
  16. var head, style;
  17. head = document.getElementsByTagName('head')[0];
  18. if (!head) { return; }
  19. style = document.createElement('style');
  20. style.type = 'text/css';
  21. style.innerHTML = css;
  22. head.appendChild(style);
  23. }
  24.  
  25. addGlobalStyle('.block.toast.adblocker { display: none !important; }');